Exemplo n.º 1
0
        //LOAD DATA TO DATAGRID
        void LoadDataToDataGrid()
        {
            _dtNV = NhanVienBusiness.DsNhanVien().Tables[0];
            for (int i = 0; i < _dtNV.Rows.Count; i++)
            {
                //Get path Img
                string _imgName = _dtNV.Rows[i]["Anh_NV"].ToString();
                if (!String.IsNullOrEmpty(_imgName))
                {
                    _dtNV.Rows[i]["Anh_NV"] = GetPathImageStaff(_imgName);
                }
            }

            dgNhanVien.ItemsSource = _dtNV.DefaultView;
        }