摘要:
private void gridDeliveryDetail_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Delete) { if (MessageBox.Show("删除行?", "确认", MessageBoxButtons.YesNo) != DialogResult.Yes) return; int i = viewDeliveryDetail.FocusedRowHandle; if (i = 0) { viewDeliveryDetail.DeleteRow(i); } } } 阅读全文
posted @ 2010-12-07 17:39 一佳一 阅读(531) 评论(0) 推荐(1) 编辑