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
close icon

Applying themes to grids at runtime?



How to apply/change themes to grid at  runtime?



Regards,
Ranjan VijayKumar.

1 Reply

MK Muthukumar Kalyanasundaram Syncfusion Team November 25, 2014 08:56 AM UTC

Hi Ranjan,

 

Thank you for your interest in Syncfusion products.

 

If you want to change the theme of grid at run time, you can useGridVisualStyles” property. By using this property you can set the theme of a grid. Please refer the below code,

 

Code:

 

private void button1_Click(object sender, EventArgs e)

 {

   this.gridControl2.ThemesEnabled = true;

   this.gridControl2.GridVisualStyles = Syncfusion.Windows.Forms.GridVisualStyles.Metro;            

 }

 

Please let me know if you have any concerns.

 

Regards,

Muthukumar K

 


Loader.
Live Chat Icon For mobile
Up arrow icon