I have a wingrid that has a parent row with 2 child rows under it. when the form loads I want to compare one of the cell values in the 2 child rows. if they match I will display a msg box. How can I get the values of the child rows?
Thanks guys and gals
Q
I'm not sure using InitializeRow is a good idea here, since this event will fire more than once.
If you want to get a child row, you would do something like this:
grid.Rows[x].ChildBands[y].Rows[z].Cells[ ].Value
That makes sense. Thanks! I was also looking for the code to get the child band cell values
something like grid.rows[ ].childband. etc.
Thanks
There might be a better way I have not thought of yet, but you could use the "InitializeRow" event which fires for each row added to the grid.
There, you could check the list of sibling rows for the row in the event and check for equality of the cell values.
Hope this helps!