问题描述
紧急求助......怎么删除datagrid的行,我是用XML作数据的能给具体的吗,谢谢!!!
解决方案
解决方案二:
该回复于2008-06-30 09:26:38被版主删除
解决方案三:
我这有个flexGird的,你参考一下吧PrivateSub删除行ToolStripMenuItem_Click(ByValsenderAsSystem.Object,ByValeAsSystem.EventArgs)Handles删除行ToolStripMenuItem.ClickDimR1&,C1&,R2&,C2&DimiAsLongDimsAsAxVSFlex8.AxVSFlexGrids=Me.AxVSFlexGrid6Withs.GetSelection(R1,C1,R2,C2)Fori=R1ToR2Ifi=1ThenIf.Rows>1Then.RemoveItem(R1)Else.Select(R1,C1,.Rows-1,C1).Clear(VSFlex8.ClearWhereSettings.flexClearSelection,VSFlex8.ClearWhatSettings.flexClearText)EndIfElse.RemoveItem(R1)EndIfNextiEndWithEndSub
解决方案四:
DataGridView1.Rows.RemoveAt(1)
时间: 2024-10-31 14:28:59