Home - Forums-.NET - FlyGrid.Net (Windows Forms) - How to I pass a value from a cell into a user defined class

FlyGrid.Net (Windows Forms)

.NET Datagrid - Fast, highly customizable, industry standards .NET data grid control for WinForms

This forum related to following products: FlyGrid.Net

How to I pass a value from a cell into a user defined class
Link Posted: 02-Dec-2005 04:11
Hello!

We are evaluating this FlyGrid and we have run into a problem that must be solved before being able to buy this FlyGrid product.

Some background information:
We have a flygrid where some cells in for example column 2 have different types.
There is no problem to use different types for each cell in the same column.

Now to our question:
When we enter data in a cell we want to pass this value into a user defined class. Is that possible?

For example: We have created a custom class called GridValue. By overriding the ToString in the GridValue class we can show the value stored in GridValue in a Flygrid gridcell. The problem is that we don't know how to read the value entered in the gridcell into an instance of the GridValue. We have put instances of GridValues into a datasource/dataset. We are using DynamicallyAutoDetectDataTypeColumn.


//Tony
Link Posted: 03-Dec-2005 12:32
See the sample to know how to organize conversion into string/from string of object that represented in the DynamicallyAutoDetectDataTypeColumn cells. Take attention on StringClass and its TypeConverter attribute. This type converter (StringClassConverter) provides conversion to/from string and helps DynamicallyAutoDetectDataTypeColumn to display and store change data in the cells.