I am currently trying to invoke a form to load from the current cell validated on a grid. When the Show() method of the form is reached the application stop responding. I have the included some sample code below.
The form is a new instance of the current form.
private void gridQuestions_CurrentCellValidated(object sender, System.EventArgs e)
GridCurrentCell cc = this.gridQuestions.CurrentCell;
GridComboBoxCellRenderer cr = cc.Renderer as GridComboBoxCellRenderer;
dsHouses.QuestionLinkedListValuesRow llv= cr.ListBoxPart.SelectedItem as dsHouses.QuestionLinkedListValuesRow;
Total_Cost.frmHouseQuestions ch = new frmHouseQuestions(this.objdsHouses,llv.QuestionLinkedQuestionGroupId);
ADAdministrator Syncfusion Team December 12, 2002 06:51 PM
Does it help if you call grid.CancelUpdate(); just before calling ch.Show()?
The grid might be in between Begin/EndUpdate calls while this event is raised and because of that Paint messages are ignored which causes some side unwanted effects when showing a dialog. (Something we would have to review again and change in future).
RJRobert J HarderDecember 12, 2002 08:26 PM
Ok calling CancelUpdate() didn't work, the app stopped responding at this point instead.
I have now hung this off the CurrentCellEditingCompleteEvent. The form now opens as expected.