Locking cell in VSFlexGrid

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Shailja
    New Member
    • Feb 2007
    • 123

    Locking cell in VSFlexGrid

    Hi,

    How to lock perticular cell of VSFlexGrid. Suppose I want to lock cell of Row 1 and column 2. How to do that?

    Kindly let me know if u know.
  • vijaydiwakar
    Contributor
    • Feb 2007
    • 579

    #2
    Originally posted by Shailja
    Hi,

    How to lock perticular cell of VSFlexGrid. Suppose I want to lock cell of Row 1 and column 2. How to do that?

    Kindly let me know if u know.
    use startedit event for that

    Comment

    • Shailja
      New Member
      • Feb 2007
      • 123

      #3
      Originally posted by vijaydiwakar
      use startedit event for that
      But what code do I need to write?

      Comment

      • vijaydiwakar
        Contributor
        • Feb 2007
        • 579

        #4
        Originally posted by Shailja
        But what code do I need to write?
        check row and col and set cancel=true

        Comment

        • sukeshchand
          New Member
          • Jan 2007
          • 88

          #5
          I think this code will help yoooooooooooooo ou


          Code:
          Private Sub vsGrid_EnterCell()
          If vsGrid.Col = 1 And vsGrid.Row = 2 Then
              vsGrid.Editable = flexEDNone
          Else
              vsGrid.Editable = flexEDKbd
          End If
          End Sub

          Comment

          Working...