该文被密码保护。 Read More
在控件pnlButtons.MouseDoubleClick事件中写如下代码, private void pnlButtons_MouseDoubleClick(object sender, MouseEventArgs e) { bool vIsCtrl = (Control.ModifierKeys & Keys.Control) == Keys.Control; bool vIsAlt = (Control.ModifierKeys & Keys.Alt) == Keys.Alt; if (vIsAlt && vIsC... Read More
利用GridView.InitNewRow事件可以对新增进行赋初值,移就不需要对ADO.Net的数据集组进行操作了,方便了许多,见下面代码。 private void gvwDBInfo_InitNewRow(object sender, DevExpress.XtraGrid.Views.Grid.InitNewRowEventArgs e) { this.gvwDBInfo.SetRowCellValue(e.RowHandle, "IsUsing", true); } Read More