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
444
Row is highlighted in blue but in fact not selected. How to access such row?
posted

My grid needs to do something like, delete a selected row by clicking on a button I have added to the form that contains UltraWinGrid. At times, it looks like a row is highlighted in blue, but in fact there is no row selected, and even the Me.grid1.Selected.Rows.Count = 0. But this is misleading to the user. When the row is highlighted in blue, the user would expect that it is highlighted and then click on the delete button to delete that record from Database. But in turn it throws exception saying No row selected. How do I tackle this? Is there any property by which i can access the highlighted row if both Me.grid1.Selected.Rows.Items( ) and Me.grid1.ActiveRow( ) returns nothing?

Thanks,

Sindhu 

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

     Hi Sindhu,

        If the grid.Selected.Rows.Count is 0 and the grid.ActiveRow is null and you still have a highlighted row, then I'm not sure what's happening. The only other way that a row could be highlighted is if you are are applying an appearance to the row in your code somewhere. Or maybe you have turned on HotTracking?

Children