private void getDataList() { List <ClsVendorType> dataList = rep.GetVendorTypes(); rgGrid.DataSource = dataList; }