User (Old forums)MemberJune 7, 2009 at 5:10 amPost count: 23064
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
Thanks For All
Imported from legacy forums. Posted by Akif (had 2318 views)User (Old forums)MemberJune 10, 2009 at 9:16 amPost count: 23064
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)User (Old forums)MemberJune 10, 2009 at 11:08 amPost count: 23064
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)User (Old forums)MemberJune 10, 2009 at 1:09 pmPost count: 23064
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)
- You must be logged in to reply to this topic.