473,749 Members | 2,626 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Locking cell in VSFlexGrid

123 New Member
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 5547
vijaydiwakar
579 Contributor
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 New Member
use startedit event for that
But what code do I need to write?
Apr 3 '07 #3
vijaydiwakar
579 Contributor
But what code do I need to write?
check row and col and set cancel=true
Apr 3 '07 #4
sukeshchand
88 New Member
I think this code will help yoooooooooooooo ou


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
1537
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 lock. I want to lock all records on a form, in VBA. Anotherwords like turning on the locked property. Is there a way I can do this all at once for all the records on my form including subforms? Thanks
0
3605
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 vsFlexGrid to chose un item I got an error Another things I can't put pics in the vsFlexGrid. Can we still do that in vb.net? Does anyone knows how to load it or how to make it works?
11
4747
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
3174
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 grid. How to do that? kindly let me know.
1
1920
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
2275
by: Shailja | last post by:
Hi, How to lock the grid without locking scrollbar? If you know the answer, kindly let me know
1
3297
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
1948
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 No2 7) VSFlexGrid.
0
2179
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 populated the first time, the Sort works. when I select a different condition to populate the Grid, then when I sort clicking on the column that has both Date and time, it doesn't. what happens is that it results the Grid with all 01/03/2005 00:00:00...
0
8833
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9568
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9335
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8257
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6079
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4709
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4881
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2794
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2218
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.