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

Theme

Hi ,

I need to override the default CellSize how can i do this ?


thanks in advance,

Thomas M.

1 Reply

GK Ganesan K Syncfusion Team November 18, 2009 02:57 PM UTC

Hi Thomas,

Thanks for using Syncfusion products.

To override the default CellSize, you can use the following code.

dataGrid.Model.RowHeights.DefaultLineSize = 25;

foreach (var visibleColumn in dataGrid.VisibleColumns)
{
visibleColumn.Width = 60;
}

Please download the workaround sample in the following location.

http://www.syncfusion.com/uploads/redirect.aspx?file=GDCCellSize_6b87264d.zip&team=development

Let us know if you need any more details.

Thanks
Ganesan

Loader.
Live Chat Icon For mobile
Up arrow icon