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
295
I have not selected any row in the ultrawingrid but activerow is showing as selected. How to prevent activerow selection for firsttime when form is loaded
posted

Hi

I have not selected any row from the grid but the ActiveRow is still showing up as row is selected when the form is loaded for the firsttime. How can I remove activerow selection for the form when it loads first.

 ugMain.ActiveRow.Cells("CHECKPOINTID").Value 

  • 48586
    Verified Answer
    posted

    Hello ,

     

    When you place a new UltraWinGrid on a form, it loads a default Preset. This preset applies an ActiveRowAppearance and an ActiveCellAppearance to the grid which make the ActiveRow appear with the same colors as a selected row.

     

    Note that this behavior does not affect selection in any way. To control row selection in the grid, you should use the SelectTypeRow property on the Override.

     

    To turn off this appearance on the active row, open up the property grid window in Visual Studio and go to the UltraWinGrid's properties.

     

    Via Designer:

    Expand DisplayLayout.

    Expand Override.

    Go to the ActiveRowAppearance property. Right click on this property in the property grid and click Reset.

    Go to the ActiveCellAppearance property and do the same thing.

     

    Via Code:

    ultraGrid1.DisplayLayout.Override.ResetActiveRowAppearance();

     

    Please let me know if you have any further questions.