By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,097 Members | 1,252 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,097 IT Pros & Developers. It's quick & easy.

Locking cell in VSFlexGrid

100+
P: 123
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.
Apr 3 '07 #1
Share this Question
Share on Google+
4 Replies


vijaydiwakar
100+
P: 579
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
Apr 3 '07 #2

100+
P: 123
use startedit event for that
But what code do I need to write?
Apr 3 '07 #3

vijaydiwakar
100+
P: 579
But what code do I need to write?
check row and col and set cancel=true
Apr 3 '07 #4

P: 88
I think this code will help yooooooooooooooou


Expand|Select|Wrap|Line Numbers
  1. Private Sub vsGrid_EnterCell()
  2. If vsGrid.Col = 1 And vsGrid.Row = 2 Then
  3.     vsGrid.Editable = flexEDNone
  4. Else
  5.     vsGrid.Editable = flexEDKbd
  6. End If
  7. End Sub
Apr 3 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.