Scroll MSFlexgrid...How? 
Author Message
 Scroll MSFlexgrid...How?
Anybody know how to programatically scroll an MSFlexgrid so the last items
are visible? I need to be able to view the last item in the Flexgrid after I
populate it. I can programatically select it, but I haven't found an
"EnsureVisible" property for the selected item.

Please help

--

Eddie Ferrier



Tue, 06 Nov 2001 03:00:00 GMT
 Scroll MSFlexgrid...How?

Hows about this

MSFlexGrid1.Row = MSFlexGrid1.Rows - 1
SendKeys("{UP}")
SendKeys("{DOWN}")



Quote:

> >Anybody know how to programatically scroll an MSFlexgrid so the last
items
> >are visible? I need to be able to view the last item in the Flexgrid
after
> I
> >populate it. I can programatically select it, but I haven't found an
> >"EnsureVisible" property for the selected item.

> Right after your code to populate set the Row property equal to the last
> row, set the TopRow equal to that row, then do a refresh.  This should
give
> you a grid with the last row as the bottom of the grid.

> MSFlexGrid1.Row = MSFlexGrid1.Rows - 1
> MSFlexGrid1.TopRow = MSFlexGrid1.Row
> MSFlexGrid1.Refresh

> --

> Tim Eichman, Programmer/Analyst
> Covance Pharmaceutical Packaging Services Inc.


> http://www.covance.com/
> voice: 610-391-0800 x 7100
> fax: 610/391-0801



Tue, 06 Nov 2001 03:00:00 GMT
 Scroll MSFlexgrid...How?

Oops ... Forgot the Setfocus

MSFlexGrid1.Setfocus
(as before)



Quote:

> Hows about this

> MSFlexGrid1.Row = MSFlexGrid1.Rows - 1
> SendKeys("{UP}")
> SendKeys("{DOWN}")




> > >Anybody know how to programatically scroll an MSFlexgrid so the last
> items
> > >are visible? I need to be able to view the last item in the Flexgrid
> after
> > I
> > >populate it. I can programatically select it, but I haven't found an
> > >"EnsureVisible" property for the selected item.

> > Right after your code to populate set the Row property equal to the
last
> > row, set the TopRow equal to that row, then do a refresh.  This should
> give
> > you a grid with the last row as the bottom of the grid.

> > MSFlexGrid1.Row = MSFlexGrid1.Rows - 1
> > MSFlexGrid1.TopRow = MSFlexGrid1.Row
> > MSFlexGrid1.Refresh

> > --

> > Tim Eichman, Programmer/Analyst
> > Covance Pharmaceutical Packaging Services Inc.


> > http://www.covance.com/
> > voice: 610-391-0800 x 7100
> > fax: 610/391-0801



Tue, 06 Nov 2001 03:00:00 GMT
 
 [ 3 post ] 

 Relevant Pages 

1. Scroll fails in MSFlexGrid

2. Scrolling, scrolling, scrolling

3. Field Scroll Bars & Mouse Scrolling Wheels

4. Scrolling data with Vertical scroll bar ?

5. MSFlexGrid

6. MSFlexGrid "Invalid Use Of NULL

7. How to save msflexgrid cell edit to database table

8. MSFLEXGRID

9. msFlexgrid save

10. checkbox in msflexgrid row

11. msflexgrid questions

12. Sorting by Date within MSFlexGrid


 
Powered by phpBB® Forum Software