Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
245
Column Sizes
posted

How do I change column sizes?

Parents
No Data
Reply
  • 34810
    Offline posted

    Hello cdmassey,

    To set the Height of the columns in the UWP XamDataGrid, I would recommend setting the HeaderHeight property of the grid to the double pixel value that you would like to see your headers be.

    In order to change the column width, you can set the Width property of the columns to a new ColumnWidth element and set the Value property of that ColumnWidth object. The code for this for a TextColumn would look like the following in XAML:


    <ig:TextColumn>
      <ig:TextColumn.Width>
        <ig:ColumnWidth Value="300" />
      </ig:TextColumn.Width>
    </ig:TextColumn>

    If you are looking to be able to dynamically change the height and width of the XamDataGrid columns at runtime through the UI, this is currently unsupported. If you would like to see this supported in the full version when it is released, I would recommend e-mailing ideas@infragistics.com. This will place you in direct communication with our product management teams who plan and prioritize upcoming features and development based on community and user feedback.

    Please let me know if you have any other questions or concerns on this matter.

    Sincerely,
    Andrew
    Associate Developer

Children