I am trying to find a way to get the UltraGridRow in the UltraWinGrid control that is related to my UltraDataRow in the UltraWinDataSource. So far, I have not been successful. Does anyone know how to do this?
If you know the index of the row in the list, you can use the GetRowWithListIndex method on the grid's Rows collection. This can be tricky, though, as the list here is the BindingList, not the actual list of rows in the UltraDataSource.
Another option would be to loop through the grid rows yourself and examine the ListObject of each row to see if it's the UltraDataRow you want.
I can use this work-around for my implentation but i see this is very old post and wanted to see if there is a better way now.
I am populating UltraDataSource from business objects and i am setting the tag property for UltraDataRow that i am adding to UltraDataSource. However, the tag property is not being set in UltraGridRow collection.I am checking it in InitializeRow event of UltraGrid and see that the Tag is null. How do i find the corresponding ultradatasource row for the grid row?
Never Mind. I just found solution in very next search. I had to access the ListObject property of UltraGridRow.