AllowSorting in datagrid

  • Thread starter Thread starter Jason
  • Start date Start date
J

Jason

Hi, when I set AllowSorting to true in datagrid, when user sorted a column, does
this raise an event? if yes, how can I catch it?
Thanks in advance.
 
The event is the "SortCommand" event. You need to set up an event handler
for this.
 
Thanks. But I searched MSDN, and SortCommand is used on Web Form, how about
Windows Form? Do we hve something similar to SoreCommand?
 
Oops, sorry! I thought you were referring to the ASP.NET DataGrid. Sorry,
I haven't used the Windows.Forms DataGrid.
 
Back
Top