if (StaticSystemUIClass.MsgControl.ShowQuestionDialogHasYesNoButton("你确定要删吗?") == DialogResult.Yes)
{
string whereClause = (_ResultLayer as IFeatureLayerDefinition).DefinitionExpression;
string tableName = StaticSystemAOClass.AOComm.GetDataSetName(_ResultLayer.FeatureClass);
int selectID =gvMain.SelectedRowsCount;
// string sqlID = string.Format("delete * from {0} where (@OID@='{1}')" ,tableName, selectID);
if (selectID > 0)
{
this.gvMain.DeleteSelectedRows();
MessageBox.Show("删除成功");
}
else
{
MessageBox.Show("请选中要删除的行");
}
}
慕丝2536941
后台学前端
相关分类