在gridcontrol devexpress中,我將「employee_id」列顯示爲組合框。我想將EMPLOYEES表中的數據填入gridcontrol devexpress中的「employee_id」列中。謝謝。獲取數據到gridview devexpress
0
A
回答
0
我建議你處理GridView.ShownEditor事件。在此事件處理程序中,您可以獲取當前顯示的列編輯器的克隆,並過濾其項目。下面是一些示例代碼:
private void gridView_ShownEditor(object sender, EventArgs e) {
GridView view = (GridView)sender;
if (view.FocusedColumn != employee_id) return;
ComboBoxEdit editor = (ComboBoxEdit)view.ActiveEditor;
// Here bind the editor DataSource and ValueMember and
Display member to employee_id
}
其他方式: 編號:How to bind dataset with different values to repository combobox in runtime
RepositoryItemComboBox combo = new RepositoryItemComboBox();
combo.Items.AddRange(new string[{values});
gridControl1.RepositoryItems.Add(combo);
gridView1.Columns["Criteria"].ColumnEdit = combo;
編號:
How to populate the RepositoryItemCheckedComboBox with item based on the selection made in another cell
combobox in gridcontrol
Column Value List
+0
非常感謝!謝謝! – giang
相關問題
- 1. DevExpress gridView數據源
- 2. 從gridview獲取gridview數據到datatable
- 3. 更改DevExpress gridview數據源
- 4. 從devexpress gridview c獲取過濾行#
- 5. 獲取rowdata綁定到gridview數據源
- 6. GridView devexpress ESC取消編輯
- 7. 從DevExpress-GridControl獲取分類數據
- 8. 如何在Winforms Devexpress的GridView中將TextEdit值獲取到Cell中?
- 9. 從gridview中獲取數據
- 10. 從GridView獲取數據集?
- 11. 無法獲取數據Gridview
- 12. 從buttonField獲取GridView數據?
- 13. DevExpress MVC GridView BindToLINQ()選擇太多數據
- 14. 在DevExpress GridView上添加數據
- 15. 將行添加到DevExpress GridView
- 16. DevExpress WPF Grid - 獲取行數
- 17. Master-Detail Gridview Devexpress
- 18. DevExpress MVC Gridview + LINQ
- 19. GridView的SelectedMode(DevExpress)
- 20. DevExpress GridView PostEditor
- 21. DevExpress GridView搜索
- 22. DevExpress GridView | DataGridView
- 23. 如何從SQL Server獲取數據到DevExpress FileManager而沒有EntityDataSource
- 24. 將數據屬性添加到DevExpress MVC gridview單元格
- 25. 如何將多行從GridView Winform Devexpress存儲到Access數據庫?
- 26. 如何將數據綁定到嵌套的DevExpress GridView控件?
- 27. 如何從數據集中獲取數據到gridview?
- 28. 沒有從數據庫中獲取數據到gridview
- 29. 慢從數據gridview到SQL Server獲取數據
- 30. 如何從xpo(devexpress)獲取數據庫中的數據?
請不要使用全大寫。 –
什麼平臺?贏,ASP,WPF,SL? – Mikhail