954,551 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

flexgrid scrollbar value

Can the value of vertical scrollbar attached to Msflexgrid be made to maximum through vb code.

thanks & regards

PM312
Junior Poster in Training
60 posts since Dec 2009
Reputation Points: 10
Solved Threads: 0
 

Hi,

Right Click Grid and Set property : "ScrollBar - Both"

Grd.Rows = 5000
You will get scrollbar automatically..

Regards
Veena

QVeen72
Posting Shark
950 posts since Nov 2006
Reputation Points: 84
Solved Threads: 143
 

actualy i wanted it move focus to last row when new row is added and the no of rows are more then the height of flexgreid. i am getting it with below code
SendKeys "{home}" + "{down}"

thanks

PM312
Junior Poster in Training
60 posts since Dec 2009
Reputation Points: 10
Solved Threads: 0
 

Hi,

Whenever, you add row write this :

Grd.Rows = Grd.Rows + 1
Grd.TopRow = Grd.Rows - 1


Regards
Veena

QVeen72
Posting Shark
950 posts since Nov 2006
Reputation Points: 84
Solved Threads: 143
 

thanks

PM312
Junior Poster in Training
60 posts since Dec 2009
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You