/// <summary> /// Function to fill the grid /// </summary> public void Gridfill() { try { DataTable dtbl = new DataTable(); RoleSP spRole = new RoleSP(); dtbl = spRole.RoleViewGridFill(); dgvRole.DataSource = dtbl; } catch (Exception ex) { MessageBox.Show(ex.Message); } }
/// <summary> /// Function to fill the grid /// </summary> public void Gridfill() { try { DataTable dtbl = new DataTable(); RoleSP spRole = new RoleSP(); dtbl = spRole.RoleViewGridFill(); dgvRole.DataSource = dtbl; } catch (Exception ex) { MessageBox.Show("RL:1" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// Function to get all role details /// </summary> /// <returns></returns> public List <DataTable> RoleViewGridFill() { List <DataTable> ListObj = new List <DataTable>(); try { ListObj = spRole.RoleViewGridFill(); } catch (Exception ex) { MessageBox.Show("RL2:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } return(ListObj); }