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
195
WinGrid: Updating Cell Value
posted

Hi,

 

When I try following column, I get  Runtime error:'Cannot convert string value to boolean'

row.Cells(

"statuscode").SetValue(strStatusCode, True)

My Grid is bound to a datasource and all I am trying is to set new value based on user action. I havn't defined column data type explicitly. The cell value does contain string like 'Settled' when bound to the data source.

I am not sure why it is treating the data type as boolean. Will appreciate any insights you may provide.

 

thank you

Yogesh

 

 

Parents
No Data
Reply
  • 469350
    Suggested Answer
    Offline posted

    Hi Yogesh,

    Are you getting an Exception? If so, can you post the call stack?

    Are you certain that the "statuscode" field in the data source is a string and not a boolean? Have you checked the DataType property on the grid column?

Children
No Data