Hi!
I've combined zero or more bitmaps together (based on data retrieved from a database) to form one bitmap. This new combined bitmap is then set as the image for a column in the grid:
Bitmap dwpBitmap = ConstructDWPBitmap(dwpList, out typeListString, DWPType2BitmapList); if (dwpBitmap != null) { detailsCell.ButtonAppearance.Image = dwpBitmap;
ConstructDWPBitmap is losely based on this really nice article your company wrote:
http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=6018
When the user clicks on the button with this image I want to know which image they clicked on. To save space I don't want to have to form multiple columns to house each bitmap separately. How can I know which image the user clicked on so I can take the appropriate action?
I can't seem to find the X,Y location of the click event in that button. Any suggestions are appreciated.
Thanks!
Craig
Hi Craig,
Click events don't typically expose a location. So what you could do is use the MouseDown event and store the location in a form-level member variable, then use that location in the CellButtonClick event.
Outstanding Mike! I'll give it a go and let you know how it goes.
Thank you for the fast response!