Object ToString in DatagridView

V

Vic

A datagridview is populeted by a List(of cInfo) The Datagridview Columns are
bound to properties of cInfo. Some of the properties are object types (for
example cByteInfo) and for that the cByteInfo class as a Overrdes ToString
who represent the class State. This is working fine and like i need. But now
i want to edit the grid and also the column who is bound to a object. By
validate so a cell i recive of cource a FormatException (Invalid conversion
from System.String to cByteInfo).
Cane somebody help me to find a solution for this probleem.

Best Regards
Vic
 
J

JimmyKoolPantz

A datagridview is populeted by a List(of cInfo) The Datagridview Columns are
bound to properties of cInfo. Some of the properties are object types (for
example cByteInfo) and for that the cByteInfo class as a Overrdes ToString
who represent the class State. This is working fine and like i need. But now
i want to edit the grid and also the column who is bound to a object. By
validate so a cell i recive of cource a FormatException (Invalid conversion
from System.String to cByteInfo).
Cane somebody help me to find a solution for this probleem.

Best Regards
Vic

Im kind of curious, how are you binding the data to the grid? Also, I
noticed your trying to edit the object type field with a string. So,
I'm also curous about the data that your trying to update (where is
that data coming from?)

I have a few suggestions but I would like to see an example of the
data your entering into the column, the way your binding it, and also
the data that your using to edit it.

-Jimmy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top