private void createMessage_Click(object sender, EventArgs e) { ViewMessages vm = new ViewMessages(); vm.ShowDialog(); mbs.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); ViewMessages vm = new ViewMessages(id); vm.ShowDialog(); mbs.Clear(); FillGrid(); } }