We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Vertical alignment of image in GridControl cell

Thread ID:





31268 Jul 4,2005 11:38 PM UTC Jul 5,2005 12:24 AM UTC WinForms 1
Tags: GridControl
Stephen Trinder
Asked On July 4, 2005 11:38 PM UTC

Hi all. I am using the GridControl, and I have an image in some cells. (The image is inside an ImageList in the "Standard" baseStylesMap, and I use ImageIndex to set which image from the list I want to display). Problem is, the image always appears vertically in the center of my cell. I have a covered cell that joins column 1 of rows 1 and 2. The image appears in the centre of rows 1 and 2. I have seen some sample code for inside the CellDrawn event where you can create a rectangle for an image and show the image there, which works, but I was wondering if I''ve just missed a simple property that I can set on the cell to do what I want (always display images in the top-left of a cell, covered or not). Thanks, -Stephen Trinder

Administrator [Syncfusion]
Replied On July 5, 2005 12:24 AM UTC

There are no properties that will give you this behavior. You would have to handle CellDrawn or some other event or create a custom cell type to handle this requirement.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon