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
Thanks Hristo!
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.