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
265
ActiveRow and SyncWithCurrencyManager=false not working
posted

Hi

When our main application loads, the user has to option to display 0-5 grids which are just flat grids of data they want to see at the beginning of the day.

By default, I don't want there to be any activerow in any of the grids. Setting SyncWithCurrencyManager=false works except for the first grid in the layout.

I assume it might be something to do with that grid being the first focused control in the form?

At the moment to work around it, I've put the following in the AfterRowActivate event:

static firstCall as boolean = true
If firstCall then
  firstCall = false
  grid.ActiveRow = nothing
  Exit Sub
End If
....

It seems a bit of an ugly workaround though. Is there a better way or am I misunderstanding how it works?

Thanks

Parents
No Data
Reply Children
No Data