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("请选中要删除的行"); } }
- 2 回答
- 0 关注
- 1666 浏览
添加回答
举报
0/150
提交
取消