private void MaterialGridView_FocusedRowChanged(object sender, FocusedRowChangedEventArgs e) { materialControl.DataSource = (CMaterial)MaterialGridView.GetRow(e.FocusedRowHandle); }
private void DeleteButton_Click(object sender, EventArgs e) { MaterialGridView.DeleteSelectedRows(); materialControl.DataSource = (CMaterial)MaterialGridView.GetRow(MaterialGridView.FocusedRowHandle); }