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
515
RowSelection in WinGrid
posted

Hi,

How can I make a specific row in an ultraGrid the SelectedRow when the grid is displayed? Right now, when I specify that a row is Selected in code, when the grid is displayed that row is selected, in the sense that the background is highlighted, etc., but the first row in the grid is also selected and it retains the rowSelected triangle, so to the user it appears as if two rows are selected. I want only my selected row to be highlighted and have the triangle, nothing else.

Hope that makes sense. I could send a screen shot if needed.

Thanks for any help

Steve

Parents
  • 17259
    Verified Answer
    Offline posted

    The first row is active, not selected. Active row is the row that has the input focus, so in your code set your row as active. There can be only one row active, but more than one selected).

    grid.ActiveRow = row;

Reply Children
No Data