2
我有一个datagridview从不同的表中填充列。我想根据当前行的另一列过滤列。我尝试使用datagridview的单元格输入事件,然后通过过滤当前行的列上的绑定源来过滤列。基于C#中另一列的当前行过滤datagridview列
private void lINKDataGridView_CellEnter(object sender, DataGridViewCellEventArgs e)
{
this.pROBLEMBindingSource.Filter = "item_id = " + this.lINKDataGridView.Rows[e.RowIndex].Cells[dataGridViewTextBoxColumn4.Index].Value + "";
}
这是我如何过滤datagridview的单元格输入事件上的“问题”绑定源。它工作正常,但我得到一个错误 - 存在:System.ArgumentException:DataGridViewComboBoxCell值无效。
任何建议
ITEM_ID是一个整数。 – user286546 2010-03-22 14:56:02
它不起作用 – user286546 2010-03-26 21:31:18