Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
4165
Why does Grid_InitializeRow event fire from a line of code within the same event?
posted

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.