473,503 Members | 13,028 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How detect Edit mode on a grid?

I don't know what it's called when the little pencil shows up in the Row
Selector portion of the grid but to me it indicates that the user is in edit
mode. I would like to detect this condition because I have a Save button
above a Grid, but I do not want it to be visible until the user has pressed
some key to begin typing in one of the columns of the grid.

How can I detect that the user has entered edit mode?
Nov 21 '05 #1
3 1493
You can check the ColumnChanged event of the underlying table and set do
this ..

btnSave.Visible = DataSet.HasChanges();
"Woody Splawn" <No**********@jts.bz> wrote in message
news:%2***************@TK2MSFTNGP14.phx.gbl...
I don't know what it's called when the little pencil shows up in the Row
Selector portion of the grid but to me it indicates that the user is in edit mode. I would like to detect this condition because I have a Save button
above a Grid, but I do not want it to be visible until the user has pressed some key to begin typing in one of the columns of the grid.

How can I detect that the user has entered edit mode?

Nov 21 '05 #2
I believe this only fires after the user attempts to leave the collumn. I
need to find out what I need to know as soon as the user types something
into a column on a grid. As soon as he types, he is in edit mode and I want
to make a certain button visible.

Nov 21 '05 #3
Would someone else please try to answer this?
"Woody Splawn" <No**********@jts.bz> wrote in message
news:%2***************@TK2MSFTNGP14.phx.gbl...
I don't know what it's called when the little pencil shows up in the Row
Selector portion of the grid but to me it indicates that the user is in edit mode. I would like to detect this condition because I have a Save button
above a Grid, but I do not want it to be visible until the user has pressed some key to begin typing in one of the columns of the grid.

How can I detect that the user has entered edit mode?

Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
3445
by: selowan | last post by:
Hi, In VB6 Pro SP5, I have a form that contains an MSFlexGrid and a few other textboxes and comboboxes. I am using the technique from MSDN article Q241355, which describes how to tab and edit in...
0
1607
by: Shravan | last post by:
Hi, I saw that in Windows Forms DataGrid with new row creation set to true, if I have added a new row earlier which was empty and deleted the row and shifted the focus to any other control and...
2
2316
by: Sky | last post by:
Hello: Another question about trying to wring functionality from a DataGrid... Have a DB table of "Contacts" -- 14 or more fields per record Show in datagrid -- but only 5 columns (First,Last,...
2
1782
by: Gary | last post by:
Hello All, I have an editable data grid in my web form, this grid allows the user to add new records, edit existing records and also delete them. When a user adds a record the grid goes in to...
4
1904
by: wandii | last post by:
Hi, I have a datagrid attached to a dataset. It displays the records fine however, when I edit one of the cells it does not change the edit icon to the pencil icon on the left of the row I just...
1
12206
by: cyningeston | last post by:
OS: WinXP Pro, VB/ASP/ADO.NET I'm building a web-based supplier management application. For each supplier we are required by the FDA to track certain documents. I've managed to pull them from...
9
2708
by: rn5a | last post by:
A Form has a DataGrid which displays records from a SQL Server 2005 DB table. Users can modify the records using this DataGrid for which I am using EditCommandColumn in the DataGrid. This is the...
8
1972
by: =?Utf-8?B?bWlrZWc=?= | last post by:
Hi, I am building a small Help Desk application for my company and need to be able to edit "open" help desk issues. I use a simple datagrid to display each issue (6 per page) , with an Edit...
1
6689
by: rogerford | last post by:
I have a grid which i bind with values from Database. I have events to edit and update the grid. I am not using SqlDatasource to connect to DB. Rather i am doing the updating of the grid...
0
7212
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
7098
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
7364
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7017
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...
0
7470
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5604
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,...
0
4696
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...
0
3174
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1524
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.