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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Set column size for RowHeader column

Thread ID:





116458 May 27,2014 10:28 PM UTC Jun 4,2014 09:53 AM UTC WPF 1
Tags: GridDataControl
Mike Anderson
Asked On May 27, 2014 10:28 PM UTC

   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.    


Ashok N [Syncfusion]
Replied On 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.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon