Mouse Touch actions

Hi


What is the best way configurations for the grid to have a mouse / touch feature to scroll and navigate througth a grid ?

Thx


set:

grid.MouseActions.TouchScroll = true<o:p></o:p>

Ok ... but if i have an edited columns grid ... i have problem with row selection, check box and combo fields... and so ... how solve it ?

What exact problem do you experience?

for example when touch and move grid checks box on a different row is checked or unchecked...

I retested this here with a default grid on the form initialized with:


procedure TForm4.FormCreate(Sender: TObject);
begin
  advstringgrid1.RowCount := 100;
  AdvStringGrid1.LinearFill(false);
  advstringgrid1.Options := advstringgrid1.Options + [goEditing];
  advstringgrid1.AddCheckBoxColumn(1);
  AdvStringGrid1.MouseActions.TouchScroll := true;
end;

and I cannot see the checkboxes affected when clicking & touch scroll from the checkbox column. What are you doing different?

excuse me bruno... the problem is grid refresh... if i move with touch a grid many cheks box became unchecked 

Do you use the latest version of the grid?
I retested this once more, now with all checkboxes checked by default and doing touch scroll does not uncheck these checkboxes:


procedure TForm4.FormCreate(Sender: TObject);
begin
 advstringgrid1.RowCount := 100;
  AdvStringGrid1.LinearFill(false);
  advstringgrid1.Options := advstringgrid1.Options + [goEditing];
  advstringgrid1.AddCheckBoxColumn(1,true);
  AdvStringGrid1.MouseActions.TouchScroll := true;
end;