473,398 Members | 2,188 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,398 software developers and data experts.

How to use cellclick event for datagridview in c# in vs2005?

12
Hi to All,
How to use mouse click event for datagridview in c# in vs2005?
I m using datagridview in c# application.I had bound data in datagridview.I want to display data in textbox when i click on appropriate row of the datagridview.Grid has only one event "cellcontentclick" is displayed.But i want to use "cellclick" or "selectionchanged" event of datagridview.
So plz help me...How to do this....?
Thax in advance.......
Nov 21 '08 #1
2 8416
artov
40
What are you talking about? DataGridView has lots of events for clicks, at least:
  • CellClick
  • CellContentClick
  • CellContentDoubleClick
  • CellDoubleClick
  • CellMouseClick
  • CellMouseDoubleClick

I don't know the difference between CellClick and CellMouseClick other than with CellMouseClick you can check the mouse button the click was made. CellContentClick tells that the click was on the content (i.e. the text), not on the empty space around it.
Nov 21 '08 #2
hnpatel
12
Hi,
I want to get data in textbox when i click on cell of datagridview.It may be any event Cellclick or Mouseclick.Bcoz there is only one event displayed in the application. So how to use another event in C# application?
So plz help me....
Nov 21 '08 #3

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

Similar topics

1
by: Bob | last post by:
I'm using a datagridview and a binding navigator in VS2005 all bound to a table in a sql dataset. I need to be able to handle a the equivalent of a before delete event in which I do checking before...
5
by: Bob | last post by:
In a datagridview (vs2005, VB.net) I have two columns that are checkboxes. I need to check that only one of the two can be checked. Its not permissible to have the two selected to true, but they...
1
by: Brian | last post by:
I've got a couple questions on the new Datagridview control in VS2005. 1) In the old datagrid control at design time I was able to add multiple tablestyles with columns from different...
10
by: michael sorens | last post by:
Is it possible to store an unbound DataGridView component into a setting? I naively tried defining a Setting that is a DataGridView called DGV, then simply assigning it:...
1
by: RSH | last post by:
Hi, I have a very basic Datagridview that I have setup from code. I added a buttonColumn from code and setup a CellClick handler. When i click the buttons nothing happens. I assume I have to...
7
by: Mitchell S. Honnert | last post by:
Is there an equivalent of the DataGrid's DataGridTableStyle for the DataGridView? If not, is there an easy way to duplicate the DataGridTableStyle's functionality for the DataGridView? Here's...
0
by: vbt | last post by:
(VS2005) I am new to using the DataGridView and I have read most everything I can find on this subject. But obviously I am not see the hole picture. I am trying to update a data base...
0
by: =?Utf-8?B?UHVjY2E=?= | last post by:
Hi, I'm using vs2005, .net 2 for windows applicatino. Does any one know which event is raised for a Datagridview control when one of the record data is changed and it sorts itself with the default...
7
by: =?Utf-8?B?UHVjY2E=?= | last post by:
Hi, I'm using vs2005, .net 2, C# for windows application. I have a DataGridView control that its datasource is from a dataset datatable. After the user changes the data on a row in the grid, the...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.