Home › Forums › WinForms controls › Xceed Grid for WinForms › Plz Help
-
AuthorPosts
-
#17107 |
Im Using Xceed Grid For .Net 3.0
I had some problems
1- How I can Identify Max Length for Cell
2- How I Can Add Button In Cell To search Data from DataBase
3- How I can Fill Xceed Grid (GridControl) at Empty Row
4- How I Can Fill zero at left in Integers Type Column
Please help
Thanks For All
Imported from legacy forums. Posted by Akif (had 2318 views)
Hi,
1- it depends on the content of the cell. If it is bound to a dataset, it is the column type in the dataset that sets this limit.
2- it would be preferable to put a button to do a search in the database on the form hosting the grid rather than on the grid, except if the search is linked directly to the row, which means you would have one button per row, in this case. Check this thread for an example: http://xceed.com/CS/forums/thread/20745.aspx
3- Not sure what you mean, here. If you want to add a new DataRow to an empty grid, in VB.Net
Dim dataRow As DataRow
dataRow = GridControl1.DataRows.AddNew()
and then do what you want with dataRow, if you need to do something at this point. If you don’t need to keep a reference, GridControl1.DataRows.AddNew() is enough.
4- Filling a cell containing an integer with 0 at the left is not possible. You would have to use a string to store these integers” This way, you could have leading zeros in the cell display.
Imported from legacy forums. Posted by Ghislain (had 236 views)
For First Answer I’m Useing Unbound I wont To Prevention User enter More tahn 5 Char in cell
For Third answer i wont to fill xcced grid with row like TDBGrid (Fill Grid By Rows at Design Time)
Thank you once again my friend
Imported from legacy forums. Posted by Akif (had 221 views)
For question 1:
Dim cell As DataCell = GridControl1.DataRowTemplate.Cells(“Column2”)
Dim tb As TextBox = New TextBox()
tb.MaxLength = 5
cell.CellEditorManager = New CellEditorManager(tb, “Text”, True, True)will do it.
Imported from legacy forums. Posted by Ghislain (had 1436 views)
Thank you
This is what I’m looking for exactly
Thank you again my friend
Imported from legacy forums. Posted by Akif (had 2329 views)
-
AuthorPosts
- You must be logged in to reply to this topic.