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. Image for the cookie policy date

adding controls to customize the grid

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

4 Replies

AD Administrator Syncfusion Team 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


SL Salvatore Lentini 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 > >


AD Administrator Syncfusion Team 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


AD Administrator Syncfusion Team 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

Loader.
Up arrow icon