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
That was me. I had a code snippet on cell update event that was checking for boolean value. It confused me since IDE never stepped in to cell update event handling code.
I fixed the problem.
Thanks Mike,
Hm... that does not seen possible to me. When you pass in a string into a method, the method does not know if it was a literal string or a variable, as far as I am aware.
Have you tried setting the Visual Studio IDE to break on all exceptions? Perhaps this exception is occurring somewhere in an event handler in your code and is being caught by the grid so you can't see where it's happening.
Are you using the latest service release? How to get the latest service release - Infragistics Community
If that does not help, can you reproduce this in a small sample project and post it here so I can try it out?
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'.