Exemple #1
0
        private void ReLoad(string search)
        {
            try
            {
                dtItems = objMaterial_DL.GetData_Search(search, (int)Material.Status.Enable, MatCatID);

                objSource.DataSource = dtItems;


                dgvItems.AutoGenerateColumns = false;
                objSource.DataSource         = dtItems;
                dgvItems.DataSource          = objSource;
                objSource.ResetBindings(true);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message, ex);;
            }
        }