void LoadRecords() { dgDetails.Rows.Clear(); oRole = new DataAccess.Role(); foreach (DataRow row in oRole.GetRole("", "").Rows) { dgDetails.Rows.Add(row[0], row[1], row[2]); } }
void LoadRole() { oRole = new DataAccess.Role(); cboRole.Items.Clear(); cboRole.DataSource = oRole.GetRole("", ""); cboRole.DisplayMember = "ROLE"; cboRole.ValueMember = "ROLE"; cboRole.Text = string.Empty; }
public void LoadRole() { try { oRole = new DataAccess.Role(); dgDetails.Rows.Clear(); eVariable.DisableGridColumnSort(dgDetails); foreach (DataRow row in oRole.GetRole("", "").Rows) { dgDetails.Rows.Add(row[0], row[1], row[2]); } } catch (Exception ex) { } }