private void RolesSB_Click(object sender, EventArgs e) { int employeeId = Convert.ToInt32(DataGV.SelectedRows[0].Cells["ID"].Value); Security.UserRolesForm form = new Security.UserRolesForm(employeeId); form.ShowDialog(); }