I wonder if there are any good examples of how to work with MFC Datagrid (I read a few topics here but havent found needed information)
in particular:
I can get the table and needed cell which I want double click
Code: Select all
Ranorex.Table table=@" ...";
...
Cell cellToLoad= table.Rows[rowNum].Cells[0];
cellToLoad.DoubleClick();
Code: Select all
rowNum
I.e. sometimes the table is large enough so it doesn't fit to the screen.
so two questions:
1) is there any quick way to know that my row is not visible except searching for the ScrollBar which takes a bit of time? (maybe there are some methods to check the if row with specific index is visible?)
2) when I know that my row is out of visible part - what is the best way to get it visible? Scrolling down is the best way?
3) What method should I use if I want to scroll down knowing the percentage of the scroll length? ie lets assume that when with current settings my scroll bar is on 25% (meaning that visible part is 1/4 of the whole table) and my row is in the middle - so I want to move scrollbar control to the middle of the scroll line. How should I do it?
Thank you for your help
Victor