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
190
Changing Data Source Changes Grid's Row Height
posted

I have a tab control with 2 tabs. The first tab contains a summary grid, and the second tab contains a details grid.

When I assign the DataSource property of the Summary grid, the row height of the Summary grid's rows is normal. However, when I set the DataSource of the Details grid, the row height of the Details gridis higher, but about 10 pixels or so.

If I set the data source of the Details grid to the same data source as the Summary grid, then the Details grid's row height is normal. As soon as I set the Details grid's data source to the DetailDataSource, the row height changes.

I can reproduce the problem, and there is no code affecting this.

  • 469350
    Offline posted

    Hi Kevin,

    The row height could change based on the data. If one of your cells is multiline or a data type like image or DateTime, then some of the cells in the row might need more height in order to display it. For example, a DateTime column shows a dropdown button, so this can increase the height of the row to make the button fit.

    If you want to force the height of the row to a particular size, then simply set the Height of the Row. You may also need to set the MinHeight.