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.
Unfortunately, activation email could not send to your email. Please try again.

adding controls to customize the grid

Thread ID:





33061 Aug 11,2005 06:40 PM Aug 16,2005 01:40 PM Windows Forms 4
Tags: Grouping
Salvatore Lentini
Asked On August 11, 2005 06:40 PM

how can I add a checkbox to each new group header of the grid?

Administrator [Syncfusion]
Replied On August 11, 2005 09:54 PM

One way you can do this is to use the QueryCellStyleInfo event. Here is a little sample. http://www.syncfusion.com/Support/user/uploads/GGC_CopyToExcel_74b9c896.zip

Salvatore Lentini
Replied On August 15, 2005 03:49 PM

This doesn''t seem to work in ASP.net -- is this true? >One way you can do this is to use the QueryCellStyleInfo event. Here is a little sample. >http://www.syncfusion.com/Support/user/uploads/GGC_CopyToExcel_74b9c896.zip > >

Administrator [Syncfusion]
Replied On August 16, 2005 01:36 PM

Hi Salvatore Yes, it is possible to do what you are seeking by using Templates. Here is a modified version of the Skins sample that demonstrates this. Right click on the GridControl in the Design mode and choose Edit Template -> Item Templates and edit the GroupCaptionTemplate by adding a checkbox and a label. Right click again and choose End Template Editing. The text for the label is set using the GetLabelText method shown below: protected string GetLabelText(GridCell container) { GridCaptionRow gcrow = (GridCaptionRow)container.RowElement; Group group = gcrow.ParentGroup; return GridEngine.GetGroupCaptionText(group); } Here is the modified version of the sample (You can unzip this to the Grid.Grouping.Web\samples\1.1\LookAndFeel\Skins\cs folder). Kindly update incident 20422 if you have any further questions. Regards Arun

Administrator [Syncfusion]
Replied On August 16, 2005 01:40 PM

Hi Salvatore, The sample posted in the previous posting uses Essential Studio 3.3. I posted download instructions for the Essential Studio 3.3 in incident 20422. Regards Arun


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.

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.