这是重写DataGridColumnstyle后的DataGridComboBoxColumn,的SelectValueChanged的事件,我想问的问题是:private void DGCombo_SelectedValueChanged(object sender,System.EventArgs e)
{
_strSelectedText=DGCombo.Text;
isEditing=true;
base.ColumnStartedEditing (DGCombo);
                            _strSelectedText=DGCombo.Text;
if (_strSelectedText==null)  
{
_strSelectedText=string.Empty; } }
在dataGrid上的新增行上(也就是最后一行),comboBox第一次发出该事件后,dataGrid根本得不到comboBox.text的值(也就是selectedvaluechange的值),它的值总为空,然而其它行都可以。我测试后,每发出该事件一次,那么它会连续产生三次,因为中间有个base.ColumnStartedEditing (DGCombo)它会产生二次,就在这二次中我的变为空了,至使我在combobox中选择后的值为空。但只是在datagrid新增行上(也就是最后一行),会这样,请问为什么?而不是怎么解决?