I would like to display the total number of records parent band and children band. Need experts' help. Thanks
Hello,
UltraWebGrid is just an UI control which displays the data that is is bound to, so you can simply get the total number of records in the parent and childs bands directly from the datasource (depending on the datasource, the code to do that is different, for example for ADO.NET DataTableit would be DataTableRef.Rows.Count).
Alternatively, you can get to the rows of any parent (root row) using it's own Rows collection, in a recursive manner, e.g. this way you will access the third child row of the sixth root row:
UltraWebGrid1.Rows[5].Rows[2]
HTH,
Does anyone know how to count rows when using a SQLDataSource?
THX!