Wednesday, 22 January 2014

Searching in Grid View Run Time

 string s=TextBox2.Text;
            var q = new empBLL().show().Where(id => id.EmpName.StartsWith(s));
           
            GridView1.DataSource = q;
            GridView1.DataBind();


//selecting rows

TextBox1.Text = GridView1.SelectedRow.Cells[2].Text;

No comments:

Post a Comment