buttoncolumn问题,在各大论坛问了好几天了,还是解决不了,只有50分了
我在datagrid控件里有一个buttoncolumn,在它的OnItemCommand事件中
Sub DataGrid_ItemCommand(Sender As object,E as DataGridCommandEventArgs)
dim strNum as string=e.item.cells(1).text
lblShowText.Textt=strNum
End Sub
在没有按datagrid控件的上一页,下一页时候,它是运行正常的(即可以准确获得预定的值),但当我按“下一页”时就出现以下错误了:
指定的参数已超出有效值的范围。参数名:index
出错行:dim strNum as string=e.item.cells(1).text
不知道为什么会这样,请各位高手赐教了!万分感谢