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
480
Do not select the first row by default in windows data grid
posted

As the above picture showing,

How can I make the first row not selected by default?

Please give me some advise.

Thanks,

Johnny

Parents
No Data
Reply
  • 20872
    Verified Answer
    Offline posted

    Hello John,

    One event that you could handle is the Shown event of the Form and set there the ActiveRow of the UltraGrid to Null like:

    ultraGrid1.ActiveRow = 

     

     

    null;

    In your case you are not having Selected Rows but Active. If you would like to disallow the active and seleted appearance at all for your UltraGrid you could do something like the following in the InitializeLayout event of the UltraGrid like:

    Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
            {
                e.Layout.Override.ActiveAppearancesEnabled = Infragistics.Win.DefaultableBoolean.False;
                e.Layout.Override.SelectedAppearancesEnabled = Infragistics.Win.DefaultableBoolean.False;
            }

    If you have any other questions please feel free to ask.

Children