コード例 #1
0
 protected void GridView3_PageIndexChanging(object sender, GridViewPageEventArgs e)
 {
     GridView3.PageIndex = e.NewPageIndex;
     GridView3.DataSource = GetDataSource();
     GridView3.DataBind();
     GridView3.Focus();
 }
コード例 #2
0
    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();
    }
コード例 #3
0
 protected void btmShow_Grid(object sender, EventArgs e)
 {
     GridView3.DataBind();
     GridView3.Focus();
 }
コード例 #4
0
 protected void btnDeleteRow_Click(object sender, EventArgs e)
 {
     GridView3.DeleteRow(GridView3.SelectedIndex);
     GridView3.Focus();
 }