public void PopulateGridView() { aDiscountAuthorityManager = new DiscountAuthorityManager(); DataTable dataTable = new DataTable(); dataTable = aDiscountAuthorityManager.PopulateGridView(); gridControlDiscount.DataSource = dataTable; }
public void GetRefferedAuthority() { aDiscountAuthorityManager = new DiscountAuthorityManager(); dataTable = aDiscountAuthorityManager.PopulateGridView(); dataTable.Rows.Add(); cmbDiscountBy.DataSource = dataTable; int row = dataTable.Rows.Count - 1; dataTable.Rows[row][1] = "---Select---"; cmbDiscountBy.SelectedIndex = row; cmbDiscountBy.DisplayMember = "Name"; cmbDiscountBy.ValueMember = "Id"; //gridControlReffered.DataSource = dataTable; }
public DiscountAuthorityUi() { InitializeComponent(); aDiscountAuthorityManager = new DiscountAuthorityManager(); aDiscountAuthority = new DiscountAuthority(); }