473,387 Members | 1,579 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.

Datagrid not responding to events

EdB
I have a datagrid named grdSubClients

I have all but one column set as read only, and I'm trying to trap events
when the user enters data into the one editable column. I have formatted the
grid using column styles, but turning that off had no positive effect.

The issue is the following events seem like what I would want

Private Sub grdSubClients_TextChanged(ByVal sender As Object, ByVal e As
System.EventArgs) Handles grdSubClients.TextChanged

or

Private Sub grdSubClients_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles grdSubClients.KeyPress
However, no code that I put inside these subs gets hit when the user enters
data in the column.

I do get a hit on this event:

Private Sub grdSubClients_CurrentCellChanged(ByVal sender As Object,
ByVal e As System.EventArgs) Handles grdSubClients.CurrentCellChanged

But it is of no use since it fires when it lands on the new cell and I don't
have any way of deriving the cell that they came from.

As a side note, the datagrid has been a huge source of frustration for me
and my team. I used a third party grid for my VB6 apps that was SO EASY. I
know that this grid can do all the things I need it to do (or at least I'm
pretty sure most), but the documentation is so buried and examples so hard to
find. I would buy a book that focused on the expert use of VB.Net controls,
especially the grid, in an instant. Hint hint.
Nov 21 '05 #1
2 1300
Hi,

http://www.syncfusion.com/FAQ/WinFor...c44c.asp#q773q

VB.Net version of code
http://www.onteorasoftware.com/downl...validation.zip

Ken
-----------------------
"EdB" <Ed*@discussions.microsoft.com> wrote in message
news:EE**********************************@microsof t.com...
I have a datagrid named grdSubClients

I have all but one column set as read only, and I'm trying to trap events
when the user enters data into the one editable column. I have formatted
the
grid using column styles, but turning that off had no positive effect.

The issue is the following events seem like what I would want

Private Sub grdSubClients_TextChanged(ByVal sender As Object, ByVal e As
System.EventArgs) Handles grdSubClients.TextChanged

or

Private Sub grdSubClients_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles grdSubClients.KeyPress
However, no code that I put inside these subs gets hit when the user enters
data in the column.

I do get a hit on this event:

Private Sub grdSubClients_CurrentCellChanged(ByVal sender As Object,
ByVal e As System.EventArgs) Handles grdSubClients.CurrentCellChanged

But it is of no use since it fires when it lands on the new cell and I don't
have any way of deriving the cell that they came from.

As a side note, the datagrid has been a huge source of frustration for me
and my team. I used a third party grid for my VB6 apps that was SO EASY. I
know that this grid can do all the things I need it to do (or at least I'm
pretty sure most), but the documentation is so buried and examples so hard
to
find. I would buy a book that focused on the expert use of VB.Net controls,
especially the grid, in an instant. Hint hint.
Nov 21 '05 #2
EdB
You are the man!

"Ken Tucker [MVP]" wrote:
Hi,

http://www.syncfusion.com/FAQ/WinFor...c44c.asp#q773q

VB.Net version of code
http://www.onteorasoftware.com/downl...validation.zip

Ken
-----------------------
"EdB" <Ed*@discussions.microsoft.com> wrote in message
news:EE**********************************@microsof t.com...
I have a datagrid named grdSubClients

I have all but one column set as read only, and I'm trying to trap events
when the user enters data into the one editable column. I have formatted
the
grid using column styles, but turning that off had no positive effect.

The issue is the following events seem like what I would want

Private Sub grdSubClients_TextChanged(ByVal sender As Object, ByVal e As
System.EventArgs) Handles grdSubClients.TextChanged

or

Private Sub grdSubClients_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles grdSubClients.KeyPress
However, no code that I put inside these subs gets hit when the user enters
data in the column.

I do get a hit on this event:

Private Sub grdSubClients_CurrentCellChanged(ByVal sender As Object,
ByVal e As System.EventArgs) Handles grdSubClients.CurrentCellChanged

But it is of no use since it fires when it lands on the new cell and I don't
have any way of deriving the cell that they came from.

As a side note, the datagrid has been a huge source of frustration for me
and my team. I used a third party grid for my VB6 apps that was SO EASY. I
know that this grid can do all the things I need it to do (or at least I'm
pretty sure most), but the documentation is so buried and examples so hard
to
find. I would buy a book that focused on the expert use of VB.Net controls,
especially the grid, in an instant. Hint hint.

Nov 21 '05 #3

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

Similar topics

3
by: MarkDu | last post by:
I want to have a datagrid, say 10 rows, and in one of the columns I want 7 of the rows to have plain text, and the other 3 rows to have a combobox (or linkbutton, etc). Is this even possible? I...
7
by: TT (Tom Tempelaere) | last post by:
Hi there, I'm struggling to get the right event. I want to be notified of a change in a cell in a DataGrid made by a user. I need following information about the change: * the row index * the...
5
by: John Richardson | last post by:
I've been bothered for some time about my DataGrid not populating my rows very quickly. I have about 10K rows loading into the grid. I create a datatable dt with 2 columns, an ID and a display. ...
2
by: andla | last post by:
Hi, How does events fire in a datagrid. I know about the problem if turning the viewstate off the events wil not fire properly even if I rebind the control in every postback. S then I started...
2
by: andrew.roberts | last post by:
This is my second post now on this subject has I seem to be getting no where and the problem is really starting to bug me now. I can get a datagrid into an editable state but then neither the...
4
by: Jeff User | last post by:
Hi I tryed to solve this problem over in the framework.asp group, but still am having trouble. Hope someone here can help. using .net 1.1, VS 2003 and C# I have an asp.DataGrid control with a...
6
by: Scott McDaniel | last post by:
I'm using Visual Studio 2005 with the .NET 2.0.50727 framework, and we're using the standard Datagrid control bound to a SQL Server. We have two groups of users - "full edit" users, and "view...
2
by: | last post by:
Is it possible to use IE transition effects (e.g. progid:DXImageTransform.Microsoft.Fade(Duration=2)">) to smooth "classic" (IE non-ATLAS) datagrid paging? How do you wire up the transition effect...
9
by: Tony Girgenti | last post by:
Hello. I'm developing and testing a web application using VS.NET 2003, VB, .NET Framework 1.1.4322, ASP.NET 1.1.4322 and IIS5.1 on a WIN XP Pro, SP2 computer. I'm using a web form. For a...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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,...
0
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...

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.