Cell type "FNumericUpDown"

Hi all!

I need a numeric up down control in my grouping grid control and found some sample code for custom cell types (the sample "EnhancedNumericUpDownCell") which seemed like an appropriate solution.

Using the cell type "FNumericUpDown" works fine with the GridControl, however, using the same code (with some minor adjustments) with the GridGroupingControl) results in the error message "Object reference not set to an instance of an object." in the getter/setter function "FloatNumericUpDownProperties" in file FloatNumericUpDownProperties.cs.

I need this to work with the GridGroupingControl so I would be really happy to understand how to proceed from here.

See my attached code for details.

Thanks in advance, cheers
/Marten


MyCode.zip

2 Replies

HA haneefm Syncfusion Team July 30, 2007 10:25 PM UTC

Hi Marten,

You can not set any cell specific properties for the GroupingGrid other than the CellValue using TableModel property. You need to handle the QueryCellStyleInfo event to do this. Through this event you can set the style properties for the grid. The attached sample implements the QueryCellInfo event to set the cell property.It also implements the Hashtable for storing the csutomproperties of the grid cell. Please refer the attached sample and let me know if this helps.

Sample :ModifiedFloatNumericButton.zip

Best Regards,
Haneef


ML Mårten Lind July 31, 2007 07:01 AM UTC

Thanks Haneef, now it's working!
Cheers
/Marten

Loader.
Up arrow icon