I have a grid with several rows in it. I turn on the filter row and am able to narrow the rows down to just one row. I am then trying to get the datarow associated with the grid row. Normally, I use the ListObject property of the grid row, but I have found that summary rows do not have a ListObject associated with them. What is the best way to get the underlying datarow for a given summary row?
Brian:
I looked more closely at my code and the problem I found was that I was trying to set the active row in the grid to the first row and it was counting the filter row as that row. I have modified my code to skip filter rows (summary rows) and now everything is working. Thanks for your help!
I'm having a little trouble understanding whether you're referring to filtered-in rows or summary rows.
I attached a sample which demonstrates how to get a reference to the underlying datarow from a row in the grid that appears by applying a row filter. This approach works no differently than with any UltraGridRow, but may help you track down the problem in your application.
Summary rows, on the other hand, do not have an underlying datarow, because they are an abstraction created by aggregating cell values from one or more "actual" rows.