S
sivagururaja
Hi All,
How can i sorting the Gridview Columns via the code behind.
When i tried to sorting the column it doesn't work.
SqlConnection con = new SqlConnection("Connection
string");
con.Open();
SqlCommand cmd = new SqlCommand(str, con);
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
da.Fill(ds);
GridView1.DataSource = ds;
GridView1.DataBind();
Im using the AllowSorting=True and SortExperssion.
What's the mistake did i made?
Regards,
Raja.
How can i sorting the Gridview Columns via the code behind.
When i tried to sorting the column it doesn't work.
SqlConnection con = new SqlConnection("Connection
string");
con.Open();
SqlCommand cmd = new SqlCommand(str, con);
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
da.Fill(ds);
GridView1.DataSource = ds;
GridView1.DataBind();
Im using the AllowSorting=True and SortExperssion.
What's the mistake did i made?
Regards,
Raja.