Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • Hi

                                    I need to add a image to a column header in a XtraGrid. I do this with your ImageCollection. It woorks fine, except the image is stretced to the height of the column. How can I avoid this ?

                                    Thanks

                                    Rolf Hjemdahl

                                0

                                Hi Rolf,

                                Sorry, but I can't replicate the problem. I have attached a sample project which works fine for me. Please change it to replicate the problem and attach to your next post.

                                Thanks,
                                Stan.

                                dxSample.zip
                                0

                                Hi Stan

                                Here is a modified version of your source. As you can see, the image in the column header does get a different size than the image original size ( 16x16 ). The original image is also shown in a small picturebox on the bottom of the application form. I expected the image to look identical to this in the column header, but it does not.

                                Any help is apprishiated.

                                Thanks

                                Rolf Hjemdahl

                                dxSample.zip
                                0

                                Hi

                                I can see that this thread is answered, but I can not se the answer !!!!

                                Thanks

                                Rolf Hjemdahl

                                0

                                Hi Rolf,

                                Thank you for the sample project. The cause of the problem is in your code. You are creating the ImageCollection at runtime and do not adjust its ImageSize property. By default, the image size is 16X16 size. Thus your image is stretched by the ImageCollection itself. I have corrected your project so it works as expected now.

                                Thanks,
                                Stan.

                                dxSample.zip

                                If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Copyright © 1998-2014 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners