public void Bind_Country() { string str = "select * from Country_tb"; DataSet ds = dm.For_Adapter(str); if (ds.Tables[0].Rows.Count > 0) { GridView1.DataSource = ds.Tables[0]; GridView1.DataBind(); } else { lblmsg.Text = "No Country Found"; } }