Hi could some one help me, I have a datagrid displaying some info I set the
property "AllowSorting=true" but it doesn't work.
private void Page_Load(object sender, System.EventArgs e)
{
Response.Cache.SetCacheability(System.Web.HttpCach eability.NoCache);
if ((Page.IsPostBack))
{
SqlConnection sConn = new SqlConnection();
sConn = new SqlConnection
(System.Configuration.ConfigurationSettings.AppSet tings["sConn"].ToString());
DataSet ds = new DataSet();
String sText = "SELECT EMPLOYEE_NUMBER,FULL_NAME, LOCATION FROM TLVSETXEMD
WHERE FULL_NAME LIKE '"+ TxtName.Text +"%'";
SqlDataAdapter cmd = new SqlDataAdapter(sText, sConn);
cmd.Fill(ds,"Published");
DGEmployee.DataSource= ds.Tables["Published"].DefaultView;
this.DataBind();
}
}