473,385 Members | 1,740 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,385 software developers and data experts.

Implementing DataGrid Events

Dan

When I put a datagrid on a form in VB.NET, and then go to the code page, I
can select the datagrid in the left-hand dropdown, and see all the available
events for the datagrid in the right hand dropdown. I can then select the
event I want to implement and start coding.

However, if I do the same thing in C#, there doesn't seem to be a
correspondingly simple way to select a datagrid event and implement it. Am
I missing something?

Thanks...

Dan
Nov 15 '05 #1
2 4326

1) Select your form.
2) Go to the form's properties window - usually bottom
righthand corner.
3) Select the 'lightning bolt' icon {aka events tab}
4) Scroll through the list of events and locate the
desired event.
5) double click on the event; Visual Studio will generate
an empty event handler method on your form class with
correct arguments.

--Richard

-----Original Message-----

When I put a datagrid on a form in VB.NET, and then go to the code page, Ican select the datagrid in the left-hand dropdown, and see all the availableevents for the datagrid in the right hand dropdown. I can then select theevent I want to implement and start coding.

However, if I do the same thing in C#, there doesn't seem to be acorrespondingly simple way to select a datagrid event and implement it. AmI missing something?

Thanks...

Dan
.

Nov 15 '05 #2

Step 1 should read:

1) Select the DataGrid control in the forms editor
-----Original Message-----

1) Select your form.
2) Go to the form's properties window - usually bottom
righthand corner.
3) Select the 'lightning bolt' icon {aka events tab}
4) Scroll through the list of events and locate the
desired event.
5) double click on the event; Visual Studio will generate
an empty event handler method on your form class with
correct arguments.

--Richard

-----Original Message-----

When I put a datagrid on a form in VB.NET, and then go
tothe code page, I
can select the datagrid in the left-hand dropdown, andsee all the available
events for the datagrid in the right hand dropdown. I

can then select the
event I want to implement and start coding.

However, if I do the same thing in C#, there doesn't

seemto be a
correspondingly simple way to select a datagrid event
andimplement it. Am
I missing something?

Thanks...

Dan
.

.

Nov 15 '05 #3

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

Similar topics

2
by: cppaddict | last post by:
I have a design question which I am posting here because the implementation will be in C++ and I think there may be C++ specific language constructs (eg, friends) that might be relevant to the...
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. ...
8
by: Brent Burkart | last post by:
My datagrid OnCancelCommand event is not firing. HTML OnCancelCommand="AdminGrid_Cancel" 'Code Behind Sub AdminGrid_Cancel(ByVal sender As Object, ByVal e As DataGridCommandEventArgs)...
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: Carl Tribble | last post by:
Is there any way to reliably catch KeyUp events for Function keys in particular while inside a datagrid? I have a form with KeyPreview=True and I am using the Form.KeyUp event to handle several...
5
by: Jeff User | last post by:
Hello ..NET 1.1, VS 2003, C# & asp.net I have tried to follow msdn instructions and samples but I can not get an event to fire for this button on the datagrid. There has to be something obvious...
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...
0
by: WhiteWizard | last post by:
I am trying to implement standard multi-select of rows in a datagrid. That is, allow the user to use the CTRL & SHIFT keys to select multiple rows in a datagrid. Then I'll loop through them and...
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: 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: 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...
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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.