if(txt1.Text!="" && txt2.Text!="") { DataSet ds=new Dataset(); ds=//Put data into dataset. if(ds.Tables[0].Rows.Count>0) { // Bind your grid here.. // Disable your Textbox1 and Textbox2 txt1.Enabled=false; txt2.Enabled=false; } }
gridView1.Rows.Count()
TextBox.Enabled = false
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)