locking one column of a grid
Hi!
Can i lock first and second column of my grid from updation.
I have five columns in my tdbgrid in which the first two i want to populate with some default value and i want the user not be able to modify the values in first two columns. any idea to achieve this?
Re: locking one column of a grid
make first 2 cols as fixed.
Re: locking one column of a grid
I locked teh fiorst two columns at runtime.
Now the thing is that at form load event i wrote
tdbGrid.column(0).value="01"
tdbgrid.column(0).locked=true
tdbgrid.refresh
But it does not show the vallue 01 initially.
it shows the value only when i entered something in 3rd column or second column.
how to display the value at the very first instance.
Re: locking one column of a grid
tdbGrid.column(0).value="01"
tdbgrid.column(0).locked=true
try this
VB Code:
tdbgrid.column(0).locked=false
tdbGrid.column(0).value="01"
tdbgrid.column(0).locked=true