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

How to remove or rename the grid caption by custom?

Hi Team,

 

We want to remove or rename the grid caption by custom and besides we want to drag column to group the grid,
however we failed with no luck with below code:
grid.TopLevelGroupOptions.ShowCaption = false;
grid.ShowGroupDropArea = false;

 

Could you give some suggestions how to realize it?

Thanks,
Wuyj


Attachment: Syncfusion_Grid_Caption_816fcca7.zip

2 Replies

YW Yujin Wu September 1, 2014 01:00 AM UTC

Hi Team,

 

Any update?

 

Thanks

Yujin



SA Solai A L Syncfusion Team September 1, 2014 05:32 AM UTC

Hi Yujin Wu,

 

Sorry for the delay.

 

To remove or rename the Caption text, please refer the below provided code (you can also refer the dashboard samples for this from the installed location-<Installed Location>\Syncfusion\EssentialStudio\12.2.0.36\Windows\Grid.Grouping.Windows\Samples) and let us know if you have any further concerns.

 

Code Snippet:

//to remove the caption text.

this.gridGroupingControl1.TopLevelGroupOptions.ShowCaption = false;

//to rename the caption text.

this.gridGroupingControl1.TopLevelGroupOptions.CaptionText = "XYZ";

 

Thanks & Regards,

AL.Solai.

 


Loader.
Up arrow icon