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
Editing a 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
  • 195
    posted

    I confirm this is a bug with 2008 v 1 grid. It works fine when I pass string literal in argument like

    row.Cells("statusCode").Setvalue("UPDATED",true);

    But not when I pass as following:

    dim strDesc as string = "UPDATED"

    row.Cells("statusCode").Setvalue(strDesc, true);

    It gives me the same 'Can't convert  "UPDATED" to boolean value'.

     

Reply Children