Results 1 to 4 of 4

Thread: locking one column of a grid

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2002
    Location
    India
    Posts
    84

    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?

  2. #2
    Fanatic Member
    Join Date
    Jul 2006
    Location
    nasik,india
    Posts
    909

    Re: locking one column of a grid

    make first 2 cols as fixed.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jan 2002
    Location
    India
    Posts
    84

    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.

  4. #4
    Fanatic Member
    Join Date
    Jul 2006
    Location
    nasik,india
    Posts
    909

    Re: locking one column of a grid

    tdbGrid.column(0).value="01"
    tdbgrid.column(0).locked=true
    try this
    VB Code:
    1. tdbgrid.column(0).locked=false
    2. tdbGrid.column(0).value="01"
    tdbgrid.column(0).locked=true

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width