protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { updateGrid(); } } private void updateGrid() { try { DataSet ds = stu.GetStudent(); if (ds.Tables[0].Rows.Count > 0) { grv_Student.DataSource = ds; grv_Student.DataBind(); } else { grv_Student.DataSource = null; grv_Student.DataBind(); } } catch (Exception ex) { } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)