By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,665 Members | 1,513 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,665 IT Pros & Developers. It's quick & easy.

WebForms DataGrid OnSortCommand

P: n/a
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?


Jul 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.