sorting is not working on gridview in asp.net page
问题 I use a gridview on my asp.net page. And write a code for sorting, but the problem is that the sorting is not working. Can you please tell me what i am doing mistake. Code for bind the gridview DataSet _ds = _fOrderWrapper.ExecuteDataSet(); ViewState["FOrders"] = _rows; lblFinalisedCount.Text = _ds.Tables[0].Rows.Count.ToString(); GridOpen.DataSource = _ds.Tables[0]; ViewState["dt"] = _ds.Tables[0]; ViewState["sort"] = "ASC"; GridOpen.DataBind(); UpdatePanel1.Update(); Sorting Event code :