Yes there is a OnSortCommand event: <asp:datagrid id="ICGrid" runat="server" AllowSorting="True" OnSortCommand = "SortRows" >
private void SortRows(object source, DataGridSortCommandEventArgs e) { // fired when the column headings in the DataGrid are clicked //get the sort expression (name of the column heading that was clicked) string strSO = e.SortExpression.ToString(); //recreate the data set and bind to the DataGrid control // use strSO to set sort order of datasource ... } Richard Spence [EMAIL PROTECTED] -----Original Message----- From: dotnet discussion [mailto:[EMAIL PROTECTED]]On Behalf Of Fernando, Chaminda non Unisys Sent: Tuesday, April 30, 2002 9:01 AM To: [EMAIL PROTECTED] Subject: [DOTNET] Datagrid problem Hi all, The problem I having at the moment in the datagrid (VB windows appication). when I sorted Datagrid by clicking one of heading column I want to make some changes in text boxes in the same form.So I want to know is there any event occur when I am clicking heading column ( like fromname_load when window form loading) thanks, chaminda You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.