0
private void item_grid_CellClick(object sender, DataGridViewCellEventArgs e)
{
if (e.ColumnIndex==taxone_col_index || e.ColumnIndex==taxtwo_col_index)
{
}
}
private void item_grid_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == (char)Keys.Return)
{
e.Handled = true;
item_grid.CellClick; // i did this but its not working }
}
我想從按鍵事件中執行單元格單擊事件。怎麼做?如何從datagriview keypress事件執行datagridview cellclick事件?
你的代碼給了我主意,我解決了我的問題..謝謝 – 2012-02-22 16:19:05