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
519
Alter Height of Row when select change
posted

Hi,

When I change height of the SelectedRows in the event AfterSelectChange or in the event BeforeSelectChange, all the rows of the WinGrid are altered.

I use more one band in the grid. How I solve this problem?

 

Thanks

  • 370
    Verified Answer
    posted

    Hi,

    By default, all of the row heights are synchronized. To allow variable-height rows, you need to set the RowSizing property on the Override to Free.

    You may use following code to achieve the desired results:

    private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)

    {

         e.Layout.Override.RowSizing = RowSizing.Free;

    }

     private void ultraGrid1_AfterSelectChange(object sender, Infragistics.Win.UltraWinGrid.AfterSelectChangeEventArgs e)

    {

         // Set the height of active row.

         this.ultraGrid1.ActiveRow.Height = 40;

    }

     

    Thanks

    Vaibhav