Hi
I have a Hierarchical web grid .
In that number of child rows of parent and child also.
I want to find child rows of child.
Flow is like this:
Parent --> child--> child- -> child --> it will continue
The rows which are highlighted by Red I want to update that rows.
Hi juliep,
Please feel free to contact me if you have any further questions regarding this matter.
Thank you for your reply.
If I am understanding correctly, you need to access the "deepest" child possible of any row. This may be done by checking the count of a row's child row collection, for instance:
//get the "deepest" level first row UltraGridRow firstRow = UltraWebGrid1.Rows[0]; while (firstRow.Rows.Count > 0) { firstRow = firstRow.Rows[0]; }
//get the "deepest" level first row
UltraGridRow firstRow = UltraWebGrid1.Rows[0]; while (firstRow.Rows.Count > 0) { firstRow = firstRow.Rows[0]; }
Please let me know if I am misunderstanding your requirement in any way.
Hi,
Thanks for your suggestion but it's not confirm that how many child rows will be added it's totally depend up on database.child is only one or more than that.I tried this code it's working but the number of child are added dynamically.
Thank you for posting in the community.
In a hierarchical UltraWebGrid each row has its own rows collection which may be accessed (given that the data has been bound and is accessible) using something similar to:
UltraWebGrid1.Rows[0].Rows[0].Cells[0].Value
Similarly, on the client:
igtbl_getGridById("UltraWebGrid1").Rows.getRow(0).Rows.getRow(0).getCell(0).getValue()
Please note that the UltraWebGrid control is now outdated and as of .NetAdvantage 2011 Volume 2 is no longer included in our product package. I would suggest that you consider switching to the WebDataGrid/WebHieararchicalDataGrid. More information regarding these controls is available at:
http://help.infragistics.com/NetAdvantage/ASPNET/2011.2/CLR4.0/?page=Web_WebDataGrid_WebDataGrid.html
Additional samples demonstrating the features of these grids can be found at:http://samples.infragistics.com/aspnet/
Hope this helps.