However it seems that if the value coming from the Details View is null for Field1 then e. Is there an easy way round this, i am putting the values of about 10 fields into one string variable, i want to avoid 10 if (e. = null) If you just want to avoid duplicated code, why not move it into another method?
Datagrid(1.1) to Grid View(2.0) and using the Row Updating event how to extract the values from the controls.
Ok This is the settings: I use a Viewgrid with only itemtemplate colums for example.
Value Can someone explain to me the difference between say, Dropdownlist. However update is not working when the value of the cloumn is a null value in the database. RAJAT Do you get an error or does the update simply not work? Changing Data Grid cells and child controls based on other cells values...
I m able to change the values of the various columns which have non null values.
It's not so much code duplication i am tring to avoid as having to do a load of comparisons to see if a particular value is set or not. New Values("Some Field") to a function/method is that if Some Field is set to null in the Details Views control then rather than there being e.