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.
Sorry, .GetText does not fix it. It still fires the same event again.
Well, I found something i was doing wrong...was refreshing a datatable to the wrong data adapter. Though, I still wonder why that line of code would cause the Init row event to fire.