如何让一列的repositoryitemlookupeditex每一行显示内容不一样
1个回答
2017-03-17 · 知道合伙人教育行家
关注
展开全部
1.在RunDesiger的Repository内置编辑器设置ProcessNewValue事件2.
Private Sub RepositoryItemLookUpEdit1_ProcessNewValue(ByVal sender As System.Object, ByVal e As DevExpress.XtraEditors.Controls.ProcessNewValueEventArgs) Handles RepositoryItemLookUpEdit5.ProcessNewValue
Dim Row As DataRow
'添加新(空)行
Row = CType(RepositoryItemLookUpEdit1.Properties.DataSource, DataTable).NewRow()
'给新行各列赋值
Row(DESCRIPTION) = e.DisplayValue.ToString().Trim()
Row(PARTNO) =
'将新行加入到该类编辑器绑定的集合
Private Sub RepositoryItemLookUpEdit1_ProcessNewValue(ByVal sender As System.Object, ByVal e As DevExpress.XtraEditors.Controls.ProcessNewValueEventArgs) Handles RepositoryItemLookUpEdit5.ProcessNewValue
Dim Row As DataRow
'添加新(空)行
Row = CType(RepositoryItemLookUpEdit1.Properties.DataSource, DataTable).NewRow()
'给新行各列赋值
Row(DESCRIPTION) = e.DisplayValue.ToString().Trim()
Row(PARTNO) =
'将新行加入到该类编辑器绑定的集合
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询