Exemplo n.º 1
0
        private void FillDataInGrid()
        {
            int    position = Convert.ToInt32(ddlPosition.SelectedValue);
            string status   = ddlStatus.SelectedValue;

            dt = banner_obj.GetListByPositionStatus(position, status);

            GridView1.DataSource = dt;
            GridView1.DataBind();
            //GridViewRow FirstRow = GridView1.Rows[0];
            //Button btnUp = (Button)FirstRow.FindControl("btnUp");
            //btnUp.Enabled = false;
            //GridViewRow LastRow = GridView1.Rows[GridView1.Rows.Count - 1];
            //Button btnDown = (Button)LastRow.FindControl("btnDown");
            //btnDown.Enabled = false;
        }