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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Custom ProgressBarAdv Cell type on GridDataBound

Thread ID:





39273 Jan 3,2006 02:54 PM UTC Jan 4,2006 06:24 AM UTC WinForms 5
Tags: GridControl
Administrator [Syncfusion]
Asked On January 3, 2006 02:54 PM UTC

Is there any example which i can create a custom CellType for a GridDataBound? Thanks In advance

stanleyj [Syncfusion]
Replied On January 3, 2006 05:09 PM UTC

Hi Wyejin, Grid has a built in CellType for ProgressBar that uses ProgressBarAdv. We also ship a sample implementing that in a grid control. Refer Syncfusion\Essential Studio\\windows\Grid.Windows\Samples\CellTypes\ProgressBarCells. Best regards, Stanley

Administrator [Syncfusion]
Replied On January 4, 2006 01:33 AM UTC

Thank for replying, i''m using Visual Studio .Net 2003 and my syncfusion version is Does support for visual studio .Net 2003 :)

Administrator [Syncfusion]
Replied On January 4, 2006 01:48 AM UTC

Hmm... i think i didn''t give you enough details for my senario. I''ve created a custom ProgressBarAdv name "MyProgressBarAdv", this progress bar is inherit from the original ProgressBarAdv with an extra property in it. I''ve attached the codes together with this message. What i want to do is, i want to replace the original "ProgressBar" or add the my custom progressbar to the GridCellType list which i can use my custom progressbar on a GridDataBound grid..


stanleyj [Syncfusion]
Replied On January 4, 2006 04:59 AM UTC

Hi Wyejin, A custom CellType can be created, it requires a model class and a renderer class. The model class handles the serialization requirements for the control and creates the renderer class. The renderer class handles the UI requirements of the cell. This sample in \Syncfusion\Essential Studio\\windows\Grid.Windows\Samples\In Depth\DerivedCellControlTutorial can be referred. If you have the source then you may use the code in GridProgrssBarCell.cs to create the celltype and place this custom ProgressBar. After creating the custom celltype, it has to be registered through CellModels.Add this.gridDataBoundGrid1.Model.CellModels.Add("MyProgressBar", new GridProgressBarCellModel(this.gridDataBoundGrid1.Model)); Then you may use Style.CellType = "MyProgressBar"; The samples mentioned with 4.1 version are also available in 3.3 version. Let me know if you have any more questions. Version can also be used in .Net 2003. Best regards, Stanley

Administrator [Syncfusion]
Replied On January 4, 2006 06:24 AM UTC

Thank you very very much for the support you provide me!! It works perfectly!! :)


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

Live Chat Icon For mobile
Live Chat Icon