I am programming with c# – WinForms. I select photos from t_person_photo.
And via datatable I load data to DevExpress GridControl.
Size of the images in my table is 150×150 pixel, but when I load these images to grid I want to resize them to 50×50 pixel.
How can I do that?
If you are using a
PictureEditas aRepositoryItemof your column, here is what you can try :1- Set the
RowHeightproperty of your GridView to 50.2- Set the
SizeModeproperty of yourRepositoryItemPictorEdittoSqueeze. Doing this, the image is shrunk propertionally to fit the containerGood luck