Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GRID AND SCROLL VERTICALLY

Status
Not open for further replies.

suha

Programmer
Aug 19, 2000
41
0
0
JO
Hello
i have a read only grid where i have to scroll vertically from the third column and keep column1 and column2 data always appears on the grid(keep them always the first and second columns while i scroll vertically).
I tried to do it but it didn't work ,
tell me what commands or properties i have to use to get this type of grid.

suha
 
In the Scrolled event of the grid put following lines:

this.Column1.ColumnOrder = this.LeftColumn
this.Column2.ColumnOrder = this.LeftColumn + 1

These lines will move columns to the left edge of the grid for any scrolling. LeftColumn property of grid contains the order number of column which is currently leftmost in the visible portion of grid.

Vlad Grynchyshyn
vgryn@softserve.lviv.ua
The professional level of programmer could be determined by level of stupidity of his/her bugs
 
You might also add a partition. Check out Grid properties Partion, Panel, PanelLink and SplitBar. It allows the right side to be scrolled horizontally but seperatly from the left side.
-Pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top