Hi,
I have a boolean type field as part of my datasource bound to a grid. Everything shows up great. If the value for the boolean is false, the checkbox is unchecked and vice versa when the value is true. ... The issue I'm having is that I cannot click on the checkbox directly and have the grid check/uncheck the value in the checkbox. Instead, I have to click on a colum next to the boolean column and then tab into it and then I can check/uncheck the checkbox. How can I change this behavior so that the user can just click on the checkbox directly in the grid without having to first tab into the field?
Thank you!
Steve
Hello Steve,
I try to reproduce your issue in a small sample, but without success. Could you please take a look at the attached sample and if you think that I didn`t reproduce your scenario, please feel free to modify this sample and revert it back to me. I`ll be glad to research it for you. Let me know if you have any questions.
Regrads
Hello Georgi,
I wasn't able to run your sample solution because my company is standard on VS2005 and I get an error when trying to run the solution saying that the version of VS the solution was created on was newer than 2005 and it couldn't open it.
To give you more information, I've attached a screen shot. In the screen shot you can see that I have a grid bound to a datasource. The grid is showing several columns, two of which are boolean/logical columns (yes/no fields). The only way to switch back and forth between true/false (check/uncheck) is to first enter the field next to one of the two columns (i.e. BOM/Formula Code) and tab into the column. The user cannot just click on the checkbox in the grid and have the value switch back and forth.
Thanks for your response. Let me know if you have any questions.
Regards
Hi Georgi,
I wasn't able to get your project loaded and operating but I was able to resolve the issue. What I did was use the OnBeforeCellActivate event for the grid and added some code so that when the user double-clicks on the grid cell, the value in the check box either checks or unchecks. This was satisfactory for our application and resolved the issue. Thank you for your help!
Have you been able to resolve your issue ? Did you have a time to take a look at the attached sample. Let me know if you have any questions.
Could you please take a look at the attachment. There are the same project build with VS2005. Let me know if you have any quesitons,
When I attempt to open the csproj file I get this error: