We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

custom cell properties in gridControl

Thread ID:





49736 Sep 26,2006 04:15 AM UTC Sep 27,2006 09:01 PM UTC WinForms 2
Tags: GridControl
Julie Levy
Asked On September 26, 2006 04:15 AM UTC

I want to add one custom property to cells of type ColumnHeaderCell in my grid so i can free up the Tag property and implement sorting. My grid is derived from gridControl and is unbound, so i use the tag property of the column header cell to link the column to my datasource internally.

Is there a simple way to add custom properties? This is the only thing i need to add to this celltype. I looked at the SliderCell sample and this is way more complicated than i need. Is there a simpler implementation?


Administrator [Syncfusion]
Replied On September 26, 2006 04:50 AM UTC

Hi Julie,

You can extend GridStyleInfo to hold your own custom properties. For example, the style.MaskEdit, style.CurrencyEdit and style.FormulaTag are extended properties added to the GridStyleInfo class. So, if you have the grid source code, you could take one of these (the FormulaTag may be closest to what you have), and create your own extended style property mimicing that code.

Here is a link to a sample showing this process which might be simpler.

Also refer the Browse samples :
syncfusion\essential studio\\Windows\Grid.Windows\samples\CellTypes\PictureBoxCells
Syncfusion\Essential Studio\\windows\Grid.Windows\Samples\CellTypes\SliderCells

Let me know if you need any further assitance.

Julie Levy
Replied On September 27, 2006 09:01 PM UTC

This helped alot.
Thanks once again for your help Haneef.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon