TIWAdvWebGrid - OnAsyncRowSelect does not fire!

Hi!

I am not sure wether this is a bug (there were some similar request in the newsgroups without any answer) or there are some properties which I have to set but in my IW App (Standalone) the OnAsyncRowSelect event won't fire (OnAsyncCellSelect won't fire too). All I want to do is read the data from the grid when the user selects a row, make some tests and evt. rewrite this row back.

Are there any ideas why the OnAsyncRowSelect event doesn't fire?

Greetz
Detlev

Please note the OnAsyncRowSelect event is only fired when the IWAdvWebGrid MouseSelect property is set to msRowCheck or msSingleRowCheck.
And the OnAsyncCellClick (the OnAsyncCellSelect event you mentioned does not exist) event is only fired when the IWAdvWebGrid MouseSelect property is set to msSingleCell.

---
Kind regards,
Bart Holvoet
TMS Software Team

Dear Bart

Thank you for your assistance; that did the trick ... I set the property to "msRow": what is the difference between msRow and msRowCheck? For what purpose one should use msRow instead of msRowCheck?

And just another problem: Is there any way to clear the grid completely? I have written a function to fill the grid with detailed position info for a shopping cart, but it won't refresh. I tried "ClearRows" and  "ClearCells" but nothing happened?!

Thanks in advance
Detlev

... and another problem now: When using "msRowCheck" the user can select many rows at once;  I only want him to select only one row! Is this possible?

Thx
Detlev


Please use msSingleRowCheck instead to select only one row at once.

---
Kind regards,
Bart Holvoet
TMS Software Team

The difference is explained in the IntraWeb Grid Developer Guide on page 17 which is accessible from the Manuals page.


I have not been able to reproduce this problem. Calling ClearCells correctly clears all the cells in the IWAdvWebGrid.
If you are calling ClearCells from an Async event, please add a call to AsyncUpdateAllCells.

Example:
procedure TIWForm1.IWButton1AsyncClick(Sender: TObject;
  EventParams: TStringList);
begin
  TIWAdvWebGrid1.ClearCells;
  TIWAdvWebGrid1.AsyncUpdateAllCells;
end;

Dear Bart!

Thank you again!
Huh --- I should have find that "msSingleRowCheck" thing by myself; sorry for that!

My shopping cart grid is now working as expected; thanks allot!

Greetz
Detlev