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

Set column size for RowHeader column

   I've turned on row header (ShowRowHeader="True") for a GridDataControl. I know it's common to show an arrow here when the row is selected, but I'm writing a number into those cells - essentially a row number. When the numbers get into tripple digit, they are truncated and manual resize for that column is disabled. Can someone suggest how I can resize that column - for example, size it to the cell contents since there is no Header Title to size it to.    


1 Reply

AN Ashok N Syncfusion Team June 4, 2014 09:53 AM UTC

Hi Mike,

Thank you for contacting Syncfusion Support.

You can change the column width of the RowHeader by using ColumnWidths property in the dataGrid.Model as shown in the following code example:

Void dataGrid_Loaded(object sender, RoutedEventArgs e)


    this.dataGrid.Model.ColumnWidths[0] = 50;


Please let us know if you have any queries.

Live Chat Icon For mobile
Up arrow icon