![]() | ![]() Products ![]() ![]() ![]() ![]() |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 3 of 3 total |
![]() |
Thu, Dec 15 2016 9:51 AM | Permanent Link |
Richard Mace | Hi,
Could someone let me know how I can set the "SelectionState" of a checkbox column within a TGrid please? Thanks Richard |
Thu, Dec 15 2016 10:50 AM | Permanent Link |
Walter Matte Tactical Business Corporation | If it is a bounded grid - set the dataset.columns['checjfield'].Asboolean := true;
If it is an unbound grid - set 'True' or 'False': // Append Row - first Column is a CheckBox // Check It procedure TForm1.Button1Click(Sender: TObject); begin Grid1.AppendRow; Grid1.Rows[0][0] := 'True'; end; // Toggle Checkbox procedure TForm1.Button2Click(Sender: TObject); begin if Grid1.Rows[0][0] = 'True' then Grid1.Rows[0][0] := 'False' else Grid1.Rows[0][0] := 'True'; end; |
Thu, Dec 15 2016 10:58 AM | Permanent Link |
Richard Mace | Walter Matte wrote:
<< If it is a bounded grid - set the dataset.columns['checjfield'].Asboolean := true; << If it is an unbound grid - set 'True' or 'False': Perfect. Thanks Walter. Richard |
This web page was last updated on Wednesday, April 23, 2025 at 06:31 AM | Privacy Policy![]() © 2025 Elevate Software, Inc. All Rights Reserved Questions or comments ? ![]() |