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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to bind a data field to ImageIndex property in a GridStaticCell?

Thread ID:

Created:

Updated:

Platform:

Replies:

62380 Jun 13,2007 08:57 PM UTC Jun 14,2007 06:39 PM UTC WinForms 2
loading
Tags: Grouping
Haishi
Asked On June 13, 2007 08:57 PM UTC

I found a sample of binding to pictures, but it's very complex -- any simple way to do this? I have an integer field and i want to bind the value in this field to ImageIndex ...

Any one can help? Thanks.

Haishi
Replied On June 14, 2007 05:32 PM UTC

Anybody?


>I found a sample of binding to pictures, but it's very complex -- any simple way to do this? I have an integer field and i want to bind the value in this field to ImageIndex ...

Any one can help? Thanks.

Saravanan A [Syncfusion]
Replied On June 14, 2007 06:39 PM UTC

Hi Haishi,

Try handling the QueryCellStyleInfo event to set the ImageIndex to the cells of a column based on the cellvalue and also handle the TableControlDrawCellDisplayText event to cancel the drawing of text in those cells. In addition to these events you need to handle the QueryColWidth event to set the width of that column to the width of the image/icon.

Please refer to this sample.
http://websamples.syncfusion.com/samples/Grid.Windows/34844/main.htm

Regards,
Saravanan

CONFIRMATION

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.

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

;