private void newUser_Click(object sender, EventArgs e) { UserView u = new UserView(); u.ShowDialog(); ubs.Clear(); FillGrid(); }
private void radGridView1_CellClick(object sender, Telerik.WinControls.UI.GridViewCellEventArgs e) { if (e.RowIndex != -1) { int id = Convert.ToInt32(radGridView1.CurrentRow.Cells["ID"].Value); UserView u = new UserView(id); u.ShowDialog(); ubs.Clear(); FillGrid(); } }