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
125
Strange behavior when not binding grid in form showdialog event.
posted

Hello, This is the scenario.

I've got a grid on a form.  The grid has three columns.  One column will allow the user to do a cell copy using the right mouse click.  Other columns just do a row select on mouseclick.

If I load the form without binding the grid to a datasource in the showdialog event, but fill the grid from a button click later after the form is visible, I get the desired behavior listed above.  If I fill the grid during the showdialog, the grid will either allow me to select each cell -or- in some cases it will do a row select.  I've tried all sorts of settings to get this to work until I realized it only worked if I didn't bind the grid on the form load.  I can recreate these scenarios repeatedly.

This one is driving me nuts.  Any advice would be appreciated.  Thank you.