Exemple #1
0
        //protected void gvDepCvrg_RowCreated(object sender, GridViewRowEventArgs e)
        //{
        //    return;
        //    DataTable dt = (DataTable)gvDepCvrg.DataSource;
        //    if (dt == null)
        //        return;
        //    int intRowIndex = e.Row.RowIndex;
        //    if ((intRowIndex < 0) || (intRowIndex >= dt.Rows.Count))
        //        return;
        //    string strIndex = intRowIndex.ToString();

        //    LinkButton lnkbtnD = new LinkButton();
        //    lnkbtnD.ID = "lnkbtnD_" + strIndex;
        //    lnkbtnD.Text = "/ Decline";
        //    lnkbtnD.Click += new System.EventHandler(this.ClickedDep);

        //    LinkButton lnkbtnA = new LinkButton();
        //    lnkbtnA.ID = "lnkbtnA_" + strIndex;
        //    lnkbtnA.Text = "Approve ";
        //    lnkbtnA.Click += new System.EventHandler(this.ClickedDepA);
        //    TableCell cell= e.Row.Cells[4];
        //    cell.Controls.Add(lnkbtnA);
        //    cell.Controls.Add(lnkbtnD);
        //}



        protected void rgEmployees_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
        {
            DataTable tbl = Data.Pending_Employee_Cvrg(session_id);
            if (tbl.Rows.Count.Equals(0))
                lblNoRecords.Visible = true;
            this.rgEmployees.DataSource = tbl;
        }
Exemple #2
0
 private void drawEEGrid()
 {
     DataTable tbl = Data.Pending_Employee_Cvrg(session_id);
     if (tbl.Rows.Count.Equals(0))
         lblNoRecords.Visible = true;
     rgEmployees.DataSource = tbl;
     rgEmployees.DataBind();
 }