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);
}
}
}
DeveXPress XtraGrid 删除键删除
最新推荐文章于 2019-08-22 16:24:38 发布