|
-
Mar 14th, 2000, 12:57 AM
#1
Thread Starter
Lively Member
Hi,
In my project I use the MsFlexGrid. I fill it up with data from our SQL server. When the MsFlexGrid is filled up (about 140 rows), a vertical scroll bar appears (I can only see 30 rows on my screen).
With a timer I created a refresh function. So every minute the data is refreshed. I clear the MsFlexGrid and fill it up again. After filling it up, I select the row that was previously selected. But if this row value > 30, I can not see the selected row on my screen (I can only see the first 30 rows on my screen).
I would like to see the selected row on my screen after the refresh function. So the MsFlexGrid need to scroll down so I can see it. WHO CAN HELP ME ??
Thanks R@emdonck
-
Mar 14th, 2000, 03:03 AM
#2
Frenzied Member
Try this
Set the TopRow Property to the row number of the selected row.
You can use this property to programmatically read or set the visible top row of the MSHFlexGrid. Use the LeftCol property to determine the leftmost visible column in the MSHFlexGrid.
The largest row number that you can use when setting TopRow is the total number of rows minus the number of rows that are visible in the MSHFlexGrid. If this property is set to a greater row number, the MSHFlexGrid will reset it to this largest possible value.
This is quoted from the MSDN Library.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|