when we click on datagridview header row then datagridview sort data but i want to sort data at db level and fetch data and populate grid.
so tell me how to know sort column and sort order when we click on datagridview header row. please guide me with sample code. thanks