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

WebForms DataGrid OnSortCommand

How can I determine whether the shift key (or control, or
alt, etc.) is being held down when a user clicks a data
grid's column heading?

The DataGrid's OnSortCommand event gets fired when this
occurs. Mine is defined as follows:

Public Sub dgCompanies_Sort(ByVal source As Object, ByVal
e As
System.Web.UI.WebControls.DataGridSortCommandEvent Args) '
Handles dgProjectDocuments.SortCommand

In this callback routine, I access e.SortExpression to
see what column was pressed, but I need to know the state
of the modifyer keys too. Where can this be done?

Thanks,
Steve


Jul 21 '05 #1
0 1179

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

Similar topics

1
by: Webgour | last post by:
Hi, I'm tring to add a column to a datagrid with a linkbutton as header that can be used to sort the column. The column and the linkbutton are added programmatically (see below). However the...
5
by: tshad | last post by:
Is there a way to carry data that I have already read from the datagrid from page to page? I am looking at my Datagrid that I page through and when the user says get the next page, I have to go...
2
by: saleek | last post by:
Hi, I am trying to figure out why my datagrid has stopped firing the page and sort commands. Scenario: I originally had template columns in my datagrid and had set up custom bi-directional...
0
by: Steve Floyd | last post by:
How can I determine whether the shift key (or control, or alt, etc.) is being held down when a user clicks a data grid's column heading? The DataGrid's OnSortCommand event gets fired when this...
1
by: Pablo | last post by:
Hi! I try to create a custom DataGrid and i need to retrive the SortExpression that i send when i click on the header of a column. Ok i know, i can handle the OnSortCommand event. But i don't...
2
by: gane | last post by:
Hi I have a datagrid with bound columns generated in code behind with allowsorting set to true and OnSortCommand set to a sort function. I can see the sorted results only if i remove the...
0
by: JT | last post by:
This seems like it could be an asp.net bug. I am getting the following exception when I add OnSortCommand attribute to a datagrid. I have deleted the temp directories, rebooted etc and I have...
1
by: ºa¤Ö | last post by:
Dear All Experts I faced a problem, I had developed a UserControl (just a simple display the website logo), and added into a ASPX page. Inside the ASPX, i have a DataGrid control, and it...
0
by: rupalirane07 | last post by:
Both grids displays fine. But the problem is only parent datagrid sorting works fine but when i clik on child datagrid for sorting it gives me error: NullReferenceException error Any...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.