jindalee
asked on
Sort column when clicking header in DataViewGrid
I have a DataGridView that pops up a dialog when a cell is clicked. The dialog displays information relevant to the selected row.
If I click the column header, the dialog is displayed even though I only want the DataGridView to be sorted. Once I close the dialog, the DataGRidView is displayed sorted.
How can I avoid displaying the dialog when the column header is displayed?
If I click the column header, the dialog is displayed even though I only want the DataGridView to be sorted. Once I close the dialog, the DataGRidView is displayed sorted.
How can I avoid displaying the dialog when the column header is displayed?
In which event are you calling your method to dsplay the dialog?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I'm using VB but is was easy to translate the C into VB
if e.RowIndex > -1 then
do stuff
end if
Thank you
if e.RowIndex > -1 then
do stuff
end if
Thank you