Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
425
How to get number of rows in ultrawebgrid 8.3?
posted

I would like to display the total number of records parent band and children band. Need experts' help. Thanks

 

Parents
  • 28464
    posted

    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,

Reply Children