1、复写 Edit方法:
protected override void Edit(System.Windows.Forms.CurrencyManager source, int rowNum, System.Drawing.Rectangle bounds, bool readOnly, string instantText, bool cellIsVisible)
2、加入如下两个方法:
private void ComboSelectedText(object sender,EventArgs e)
{
if(blnCanSet)
{
SetColumnValueAtRow(objSource,intCurrentRow,cboColumn.Text);
}
}
private void ComboTextChanged(object sender,EventArgs e)
{
if(blnCanSet)
{
SetColumnValueAtRow(objSource,intCurrentRow,cboColumn.Text);
}
}