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