Hi,
Have an event for my grid, InitializeRow. In that event I have this line of code, that causes the same Initialize Event to fire AGAIN.
Int32 bomid = e.Row.Cells.IndexOf(
"bomid") > -1 ? (Int32)e.Row.Cells["bomid"].Value : (Int32)e.Row.ChildBands.FirstRow.Cells["bomid"].Value;
Why, what gives? As I typed this post, I thought maybe it has to do with .Value. So I changed it to .GetText(...) and the event did NOT fire again.
Why?
Thanks.
My guess is it's because you are referencing a child row which has not yet been initialized. So that row has to be initialized before you can access the cells in it.