I need to write some logic on the server side that updates the text and the value of a grid column.
row.Items[
ColIndex].Text = "UpdatedText"; seems to work but does not update he value.
row.Items[ColIndex].Value = "UpdatedText"; does not work as the Value property is read only.;
Please help.
Ankur
Hi Ankur,
You are correct that the Text and Value properties are different and that Value is read only. The text is the same as value until changed. A good example is changing true/false to Yes/No. If you want to change the actual value, that would imply you want to modify your Data, so simply update your DataSource and rebind the grid.
regards,David Young