开发者

DevExpress XtraGrid override from CalcRowHeight breaks RepositoryItemImageComboBox

开发者 https://www.devze.com 2023-03-20 00:56 出处:网络
I\'ve recently changed the rowheight for our grid and reduced it a bit (using code from http://www.devexpress.com/Support/Center/KB/p/A859.aspx).

I've recently changed the rowheight for our grid and reduced it a bit (using code from http://www.devexpress.com/Support/Center/KB/p/A859.aspx).

However this breaks our RepositoryItemImageComboBox, the images are no lo开发者_如何学Pythonnger shown. Using a RepositoryItemPictureEdit with an unbound column I can't seem to find how to create a working row filter/row sort.

Who can help me either fix the RepositoryItemImageComboBox images to show again or implement a filtering/sorting RepositoryItemPictureEdit.

This is the column shown with RepositoryItemPictureEdit, No image data on the filterrow is also a problem

DevExpress XtraGrid override from CalcRowHeight breaks RepositoryItemImageComboBox

This is the column shown with a RepositoryItemImageComboBox.

DevExpress XtraGrid override from CalcRowHeight breaks RepositoryItemImageComboBox


I've added some code to handle the GridViews CustomDrawCell with no Editor specified. Since we don't really need the editor to choose but show the column read only it suffices.

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

精彩评论

暂无评论...
验证码 换一张
取 消