Getting the value from a selected row in TTIWADVGrid

Hi I'm populating a TIWAdvWebGrid via the LoadfromCsv function to get a list of selectable rows. That part works fine and I can select the without problems.
My question is How do I get the value of the selected row when I click on it, I can trigger the "TIWAdvWebGrid1AsyncRowSelect" when clicked but don't I know how to copy the contents of the selected cell/row to a variable for another use.

Any help appreciated.

Hi,

Cell values can be accessed with the Cells property.

Example:

procedure TIWForm1.TIWAdvWebGrid1AsyncRowSelect(Sender: TObject;
  EventParams: TStringList; RowIndex: Integer; Checked: Boolean);
begin
  WebApplication.ShowMessage(TIWAdvWebGrid1.Cells[0, RowIndex]);
end;

Many thanks Bart, just couldnt work it out

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.