我想遍历 gridview 中的所有行并从 RepositoryLookupEdit 检索数据。
基本上我想这样做,但我不知道如何获取 RepositoryLookupEdit:
For i as Int32 = 0 to myGridView.RowCount -1
Dim row As DataRowView = CType(myGridView.GetRow(i), DataRowView)
//'This next line does not work
Dim lue As LookUpEdit = row.Item("myColumn").myRepLookupEdit
Dim drv As DataRowView = CType(editor.Properties.GetDataSourceRowByKeyValue(lue.EditValue), DataRowView)
Dim myData As Int32 = CType(drv("myData"), Int32)
Next