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
590
WDG - Update Cell Progaramtically
posted

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

Parents
No Data
Reply
  • 33839
    Verified Answer
    posted

    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 

Children
No Data