I have a spgrid with BoundField. I set allowsort to true.
I bind datasource.
but when i click in header dont sort?!
DataTable table = new DataTable();
table.Columns.Add("Name");
table.Columns.Add("ID");
table.Columns.Add("User");
table.Columns.Add("UName");
DataRow dr = table.NewRow();
dr["Name"] = item["Title"];
dr["ID"] = item["ID"];
table.Rows.Add(dr);
GridView.DataSource = table;
GridView.DataBind();