protected void GridView3_PageIndexChanging(object sender, GridViewPageEventArgs e) { GridView3.PageIndex = e.NewPageIndex; GridView3.DataSource = GetDataSource(); GridView3.DataBind(); GridView3.Focus(); }
protected void GridView3_SelectedIndexChanged(object sender, EventArgs e) { GridViewRow rw; rw = GridView3.SelectedRow; lblRowDeleted.Text = "Delete Subject Code: " + GridView3.SelectedRow.Cells[0].Text + " Subject Name: " + GridView3.SelectedRow.Cells[1].Text; btnDeleteRow.Visible = true; GridView3.Focus(); }
protected void btmShow_Grid(object sender, EventArgs e) { GridView3.DataBind(); GridView3.Focus(); }
protected void btnDeleteRow_Click(object sender, EventArgs e) { GridView3.DeleteRow(GridView3.SelectedIndex); GridView3.Focus(); }