读书人

关于datagridview的一句代码新手求教

发布时间: 2012-01-23 21:57:28 作者: rapoo

关于datagridview的一句代码,新手求教
For i = 0 To DataGridView1.Rows.Count - 1
If DataGridView1.Rows(i).Selected Then
Del_Record_DataBase(DataGridView1.Rows(i).Cells(0).Value)
i = DataGridView1.Rows.Count + 1
End If
Next i


DataGridView1.Rows(i).Cells(0).Value 这句话什么意思

cells(0)指的是什么呀?

[解决办法]

探讨
DataGridView1.Rows(i).Cells(0).Value 这句话什么意思

[解决办法]
DataGridView1.Rows(i).Cells(j).Value 是取控件第i-1行,j-1列的值

读书人网 >VB Dotnet

热点推荐