Can anyone tell me the equivalent functions for UltraWebGrid for the following DataGrid functions
DataGrid.Items.Item(i).Cells(1).Controls.Add(imgTest)
DataGrid.Items().Count()
Hello,
Please, take a look at the following forum thread:
http://forums.infragistics.com/forums/t/6965.aspx
HTH,
rows.count gives only the count of rows in the current page, but not all. how to get the count of all records in the webgrid??
Are you trying to do templating? The cell templates are kept in a collection called CellItems that is off the column object. You'll need to cast the column object to a templated column to see it:
dim templatedColumn as TemplatedColumn = CType(UltraWebGrid1.Columns[1], TemplatedColumn)templatedColumn.CellItems(i).Controls.Add(imgTest);
I'm not sure how the DataGrid works, but cells in the WebGrid aren't templated unless you explicitly make them templated. There's some information in the help that explains how to flag a column as templated.
Not sure on adding controls, I have been using the EditorControls functionality in my winforms application to add dropdown or textboxes to the grid.
Regarding the count, how about:
UltraWebGrid.Rows.Count ?