Sort on Gridview

Default.aspx.cs page: Delcare Object DAL objDal = new DAL(); string SORT_DESC = “Desc”; string SORT_ASC = “Asc”; Page Load Event protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { BindCountryGrid(); if (!String.IsNullOrEmpty(Request.QueryString[“Result”])) { DisplayMessage(); } } } Bind Grid Code private void BindCountryGrid() { DataTable dtCountry = new DataTable(); dtCountry = objDal.GetDataTable(“spGetCountry”); if (dtCountry …