如何将devexpress xtragird的存储库查找编辑项添加到字典中

时间:2016-09-15 16:19:19

标签: vb.net

Dim dictRepositoryItem as new Dictionary(of datatable,of gridcontrol.repository itemlookupedit)

dictRepositoryItem.add(Datatable1,repositoryitemlookupedit1)

1 个答案:

答案 0 :(得分:1)

您需要在字典中使用正确的类型。

Dim dictRepositoryItem As New Dictionary(Of DataTable, DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit)
dictRepositoryItem.Add(Datatable1, repositoryitemlookupedit1)