Example #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         var dt = _entities.GetAllUser();
         RadGrid1.DataSource = dt;
         RadGrid1.DataBind();
         if (dt != null)
         {
             RadGrid1.Items[0].Selected = true;
             GridDataItem item       = RadGrid1.Items[0];
             Int32        IDNhanVien = Int32.Parse(item["IDNhanVien"].Text);
             FillCurrentEmployeeDetail(IDNhanVien);
         }
     }
 }