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

adding controls to customize the grid

Thread ID:





33061 Aug 11,2005 10:40 PM UTC Aug 16,2005 05:40 PM UTC WinForms 4
Tags: Grouping
Salvatore Lentini
Asked On August 11, 2005 10:40 PM UTC

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

Administrator [Syncfusion]
Replied On August 12, 2005 01:54 AM UTC

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 07:49 PM UTC

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 05:36 PM UTC

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 05:40 PM UTC

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.

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