TDBGrid using column ButtonStyle "cbsCheckboxColumn"
Original Reporter info from Mantis: mmvisual
-
Reporter name: Markus Müller
Original Reporter info from Mantis: mmvisual
- Reporter name: Markus Müller
Description:
If the column with ButtonStyle=cbsCheckboxColumn is the last column in the DBGrid then:
- If this column is not visible, and I click on the right side from the TDGrid where is no column (white space) then the dataset is going into Edit Mode and a other selected column is be overwrite with 0 or 1.
Please correct this very unfortunate mistake soon.
- If the column is visible, and I click on the right side from the TDGrid where is no column (white space) then this column change the checkbox.
I have change your demo project "dblookup" an you can see this mistake. I have add this lines into the project:
procedure TForm1.Dbf1AfterOpen(DataSet: TDataSet);
begin
DBGrid1.Columns.Items[2].ButtonStyle := cbsCheckboxColumn;
DBGrid1.Columns.Items[2].Index := 3;
DBGrid1.Columns.Items[3].Visible := False; // Comment out this line for test 2)
end;
Thank you for help.
Additional information:
I have install this EXE:
Lazarus-1.1-37965-fpc-2.6.0-20120719-win32.exe
Mantis conversion info:
- Mantis ID: 22493
- Version: 1.1 (SVN)
- Fixed in version: 1.1 (SVN)
- Fixed in revision: 39123 (#83859e59)
- Target version: 1.2.0
- LazTarget: 1.2