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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

grid

Status
Not open for further replies.

kitnba

MIS
Jul 31, 2000
132
HK
can I freeze one column inside the grid ?
I don't want some column can move by user.
 
Hi kitnba,

MyForm.MyGrid.MyColumn.Enabled = .F.
or
PROCEDURE MyForm.MyGrid.MyColumn.MyText.When
RETURN .F.
ENDPROC
or
PROCEDURE MyForm.MyGrid.MyColumn.MyText.GotFocus
KEYBOARD '{TAB'} CLEAR
ENDPROC
or
WITH MyForm.MyGrid.MyColumn.MyText
.ENABLED = .F.
.DISABLEDFORECOLOR=RGB(0,0,0)
ENDWITH

The user can still place focus on the column with a mouse click, but the control is read-only, as far as the user is concerned. Jon Hawkins
jonscott8@yahoo.com

The World Is Headed For Mutiny,
When All We Want Is Unity. - Creed
 
Hi!

Colulmn of grid have property Movable:

Grid.Column.Movable = .F.


Vlad Grynchyshyn
vgryn@softserve.lviv.ua
The professional level of programmer could be determined by level of stupidity of his/her bugs
 
My mistake. I thought the question was how to prevent the user from moving into the column. Jon Hawkins
jonscott8@yahoo.com

The World Is Headed For Mutiny,
When All We Want Is Unity. - Creed
 
Jon, don't worry ;-) Most of us have no much time to carefully read threads, that causes mistakes for me too ;) More of us makes more sense to back up each other. On the other side, good and clear description of the problem is half of the answer...

Vlad Grynchyshyn
vgryn@softserve.lviv.ua
The professional level of programmer could be determined by level of stupidity of his/her bugs
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top