求助,使用dev的checkedcomboboxedit问题
若以下回答无法解决问题,邀请你更新回答
1个回答
展开全部
.
谢谢各位回复,我在帮助里找到一个办法using DevExpress.XtraGrid.Views.Grid;private void gridView1_CustomRowCellEdit(object sender, CustomRowCellEditEventArgs e) { if (e.Column.FieldName == "FieldName") return; GridView gv = sender as GridView; string fieldName = gv.GetRowCellValue(e.RowHandle, gv.Columns["FieldName"]).ToString(); switch (fieldName) { case "Population": e.RepositoryItem = repositoryItemSpinEdit1; break; case "Country": e.RepositoryItem = repositoryItemComboBox1; break; case "Capital": e.RepositoryItem = repositoryItemCheckEdit1; break; } }我要的效果用这个就可以实现 谢谢 查看原帖>>
谢谢各位回复,我在帮助里找到一个办法using DevExpress.XtraGrid.Views.Grid;private void gridView1_CustomRowCellEdit(object sender, CustomRowCellEditEventArgs e) { if (e.Column.FieldName == "FieldName") return; GridView gv = sender as GridView; string fieldName = gv.GetRowCellValue(e.RowHandle, gv.Columns["FieldName"]).ToString(); switch (fieldName) { case "Population": e.RepositoryItem = repositoryItemSpinEdit1; break; case "Country": e.RepositoryItem = repositoryItemComboBox1; break; case "Capital": e.RepositoryItem = repositoryItemCheckEdit1; break; } }我要的效果用这个就可以实现 谢谢 查看原帖>>
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询