Editing values in a grid

Hello,

How to edit datas value in a TIWDBAdvWebGrid ?
(I would like to do like we do in a vcl dbgrid ...)
Is it possible to edit/insert/post datas in a TIWDBAdvWebGrid1...?
Where to find a sample code of using TIWDBAdvWebGrid1...?

Whit best Regards,
Herv?
 
Hello,

I've found :

procedure TIWForm1.IWButton1Click(Sender: TObject);
Var I : integer;
begin
   for I:=0 to TIWDBAdvWebGrid1.Columns.Count-1 do
   begin
      TIWDBAdvWebGrid1.Columns.ColumnType:= ctDynEdit;
   end;
end;
 
With best regards,
Herv?

Hi,


You can edit data in the TIWDBAdvWebGrid by configuring the Columns[].Editor property.
Then you can use a TIWDBNavigator component or a Column of ColumnType ctDataButton to put the grid in edit mode.

For an example, please have a look at the "DB Grid" page of the TMS IW FeaturesDemo application which is included with the TMS IntraWeb Component Pack download.