Editable Columns
Hi,
I'm trying to make a column editable but only show a number if the value is non -zero. It seems like when I set the column format to the string format, the column becomes uneditable even though I have set the editable property to true. I'm setting the format like this.
this.grid.Headers[0]["Sell"].Format = new Dapfor.Net.Formats.StringFormat("0;0;\"\"", "", "", null);
Is this a bug or is there a different way of doing it. Please let me know.
Thanks,
Deepak
-
Dear Deepak,
The StringFormat is a generic format. It's not able to parse values because of various types and possible different interpretation of the text. That's why its property StringFormat.CanParse returns 'false' and the method StringFormat.Parse() has empty implementation.
In your case you should implement your own format that implements IFormat interface with appropriate Parse() method implementation. Please find an example here: http://doc.dapfor.com/net-suite/html/T_Dapfor_Net_Formats_IFormat.htm
Best regards,
Dapfor
0
Please sign in to leave a comment.
Comments
1 comment