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
435
Set cell text for a read-only grid after binding data
posted

Hi,

I have a wingrid in read-only mode and it's bind to a datatable. I want to change the cell text to a string for a column which is of  int datatype.How can I do that?.

For example

   if the cell value/ text  from datatable is 0 or 1. then I want to change the cell text to a string "windows" or "sql". Right now when i do that am getting an error as "Unable to convert System.String to System.Int32."

Appreaciate your help. Thanks!!