Can I Use a Checkbox in TWebDBGrid

It will only be local not conected to any Database field
I will only use it to copy selected records from on tabel to an other
but that part I know how to do
So just how to show a checkbox

For a cell in a column not connected to a DataField, call grid.AddCheckBox(col,row)

I have tried that but no checkbox shows
PROCEDURE TForm1.WebFormCreate(Sender: TObject);
BEGIN
some code......
WebDBGrid_Indian.AddCheckBox(0,0,TRUE);
WebDBGrid_Indian.AddCheckBox(0,1,FALSE);
END;

Try calling this after the dataset is activated

ok now I see them but when turning some of them on or off they all disapear

Please provide more details. Turning on / off , is that by clicking? via code? other?

yes by clicking

We've investigated this and have seen an issue when rows are updated from the dataset for columns that are not bound to a datafield.
We'll check what we can do about this.
For now, try to add a calculated boolean field to the dataset and use this to handle the checkbox for each row in the DB grid.

OK i will do that
How can I se if a checkbox is checked without saving it to the database

Did you try

grid.CheckState[col,row]: boolean;

it is not in the DB grid only in the stringgrid
but If I check one I can see if its checked by calling ... fieldbyname( a field).AsInteger = 1
and it was true if it was checked. And I never saved it to the database and it vas not saved after either.

We've seen an issue with the code editor LSP but you can write

var
  res: boolean;
begin
  res := webdbgrid1.CheckState [1,1];
end;

it will compile, it is effectively in the framework.

We'll look to fix the LSP issue.