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

datagrid top left corner cell - selects All - what event is fired?

Hello,

When clicking on the top left corner of a datagridview - then entire
contents of the datagridview is selected. When clicking on that cell - what
event gets triggered/fired? I tried RowHeaderCell, ColumnHeaderCell, but
none of these events fired when I click on the top left corner cell of the
datagrid. I was hoping to do something like

console.WriteLine(e.ColumnIndex.ToString)

and maybe that would return -1, but I am not able to locate what event fires
when clicking on the Select All cell. Any suggestions appreciated.

Thanks,
Rich
May 8 '07 #1
2 3261
On May 8, 11:35 am, Rich <R...@discussions.microsoft.comwrote:
Hello,

When clicking on the top left corner of a datagridview - then entire
contents of the datagridview is selected. When clicking on that cell - what
event gets triggered/fired? I tried RowHeaderCell, ColumnHeaderCell, but
none of these events fired when I click on the top left corner cell of the
datagrid. I was hoping to do something like

console.WriteLine(e.ColumnIndex.ToString)

and maybe that would return -1, but I am not able to locate what event fires
when clicking on the Select All cell. Any suggestions appreciated.

Thanks,
Rich
AFAIK SelectionChanged is the only event that will fire, but it will
fire more than just when you click the "select all" cell. Perhaps you
could subclass the control and add in your own event that fires only
on that cell.

Thanks,

Seth Rowe

May 8 '07 #2
Thanks.

"rowe_newsgroups" wrote:
On May 8, 11:35 am, Rich <R...@discussions.microsoft.comwrote:
Hello,

When clicking on the top left corner of a datagridview - then entire
contents of the datagridview is selected. When clicking on that cell - what
event gets triggered/fired? I tried RowHeaderCell, ColumnHeaderCell, but
none of these events fired when I click on the top left corner cell of the
datagrid. I was hoping to do something like

console.WriteLine(e.ColumnIndex.ToString)

and maybe that would return -1, but I am not able to locate what event fires
when clicking on the Select All cell. Any suggestions appreciated.

Thanks,
Rich

AFAIK SelectionChanged is the only event that will fire, but it will
fire more than just when you click the "select all" cell. Perhaps you
could subclass the control and add in your own event that fires only
on that cell.

Thanks,

Seth Rowe

May 11 '07 #3

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

Similar topics

6
by: TJ | last post by:
I've got a calendar that is based on the concept of lots of blocks that are spans with float:left. I would like to be able to have a detail section on the right side of the screen, so that when...
2
by: Chris Plowman | last post by:
Hi all, I was wondering if anyone can help me with a really annoying problem I have been having. I made a derived datagrid class that will select the row when a user clicks anywhere on a cell...
6
by: BBFrost | last post by:
I'm using Net 1.1 (2003) SP1 & Windows 2000 Here's the issue ... Rows 12 thru 24 are selected in a datagrid. The user now unselects rows 12 thru 24 and selects rows 45 thru 70 ??? How can...
1
by: Rick | last post by:
Hello all, I hope all is well with you. I am having a seriously difficult time with this problem. Allow me to set up the problem. I have a System.Web.UI.Page with the following controls...
1
by: Chris | last post by:
Hello All, Need some help here. I'm building an asp.net app that uses a datagrid. I have created a template column and added a dropdownlist to it. What I'd like to happen is have the database...
2
by: Ryan Liu | last post by:
Can someone give a sample to prevent a row from being deleted in a datatable? I tried e.Row.RejectChanges(); in dt_RowDeleting() but seems does not work. I need verify if there other data...
15
by: glenn | last post by:
Hi folks, I have a DropDownList in a DataGrid that is populated from records in a database. I want to add a value that might be a string such as "Select a Company" for the first item since an...
9
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...
0
by: =?Utf-8?B?UmljaA==?= | last post by:
In a datagridview, the first column header cell is columnHeader(0), which is immediately to the right of the Top Left Corner Select All cell. And the first RowHeader cell is RowHeaderCell(0) which...
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: 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: 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
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
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.