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
380
Can't update Cell Value property
posted

I'm having an odd problem where I can't update a cell's value.  Code like this:

 row.Cells["ID"].Value = newValue;

 doesn't work.  The value property doesn't change.  Even if I try to change the value in the VS debugger, it changes right back.  Did I accidentally set some sort of ReadOnly property for the cell.  This is a very odd problem as I've done this many times before without any problem.

 I'm trying to change the value in the InitializeRow event, where I usually do.  I've also tried changing the value after the grid has loaded and initialized, but that doesn't work either. 

 

Thanks,

Jeff