473,387 Members | 1,540 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Locking cell in VSFlexGrid

123 100+
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
4 5489
vijaydiwakar
579 512MB
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
Shailja
123 100+
use startedit event for that
But what code do I need to write?
Apr 3 '07 #3
vijaydiwakar
579 512MB
But what code do I need to write?
check row and col and set cancel=true
Apr 3 '07 #4
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

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

Similar topics

1
by: ken | last post by:
Record locking is a form property which either locks the whole record when another user is accessing it, or just locks the cell that is being edited correct? I am looking for another record...
0
by: Roberto Herrera | last post by:
Hello all, I am also having problems with the vsflexGrid. I can't make work the comboliste that I loaded into the vsFlexGrid Apparently the combolist is loaded, but when I make a click in the...
11
by: Shailja | last post by:
Hi, Can anyone tell me how to enter data into VSFlexGrid at runtime? Kindly send me coding of that.
1
by: Shailja | last post by:
Hi, Can anyone tell me how to add new row dynamically at runtime in VSFlexGrid? I have only one row in my grid at runtime. Now after adding one row, i want second row to be dynamically add in...
1
by: Shailja | last post by:
Hi, Can anyone tell me how to set tab settings in VSFlexGrid? Control should move from one column to other. What property i need to set for that? Kindly let me know.
5
by: Shailja | last post by:
Hi, How to lock the grid without locking scrollbar? If you know the answer, kindly let me know
1
by: Shailja | last post by:
Hi, Please go through the following code: i = VSFlexGrid.Rows i = i - 1 I am writting the statment VSFlexGrid.TextMatrix(i,0). Above statment generates an error "Type Mismatch".
1
by: Shailja | last post by:
I am using VB. I have one form in my project. I have following fields in that form 1) Bill No 2) Bill Date 3) Combobox of Customer 4) Address of Customer 5) Drug License No1 6) Drug License...
0
by: Bangaru | last post by:
the problem is I have the code, sorting as below in the VSFlexGrid: VSFlexGrid1.Sort = flexSortStringNoCaseAscending I have a column that displays both Date and time When I get this grid...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.