2011-07-14 56 views
0

我最近改變了我們的網格rowheight並減少了一點(使用代碼從http://www.devexpress.com/Support/Center/KB/p/A859.aspx)。DevExpress XtraGrid覆蓋從CalcRowHeight休息RepositoryItemImageComboBox

但是,這打破了我們的RepositoryItemImageComboBox,圖像不再顯示。 使用帶有未綁定列的RepositoryItemPictureEdit我似乎無法找到如何創建工作行過濾器/行排序。

誰可以幫助我修復RepositoryItemImageComboBox圖像以再次顯示或實施過濾/排序RepositoryItemPictureEdit。

這與RepositoryItemPictureEdit所示的列,對沒有filterrow圖像數據也是一個問題

No image data on the filterrow is also a problem

這是與RepositoryItemImageComboBox所示的列。

enter image description here

回答

0

我添加了一些代碼,沒有指定的編輯器來處理GridView的CustomDrawCell。由於我們不需要編輯器來選擇,只需顯示只讀列就足夠了。

Private Sub gvw_CustomDrawCell(ByVal sender As Object, ByVal e As DevExpress.XtraGrid.Views.Base.RowCellCustomDrawEventArgs) Handles Me.CustomDrawCell 
    e.Graphics.DrawImage(BitMap, e.Bounds); 
end sub 
+0

這種工作方式的優點是,UnboundColumnValue將顯示爲'過濾器'選項。 – CodingBarfield