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. Image for the cookie policy date
close icon

Image in header

Hi Surti,

Here is a forum thread that discuss with simillar issue.
http://www.syncfusion.com/support/Forums/message.aspx?&MessageID=48719

Best Regards,
Haneef

7 Replies

SU Surti December 4, 2006 11:46 AM UTC

Hellow,

could i show an icon or an image in a header cell?

Thanks,
Surti.


AD Administrator Syncfusion Team December 4, 2006 12:01 PM UTC

Thanks, i want to show the image alinged to the center because now is showed alinged to the left, is it posible???

>Hi Surti,

Here is a forum thread that discuss with simillar issue.
http://www.syncfusion.com/support/Forums/message.aspx?&MessageID=48719

Best Regards,
Haneef


AD Administrator Syncfusion Team December 4, 2006 12:50 PM UTC

Hi Surti,

Use the NumberedColumnHeader property to turn off the number in a column header of the grid. Andthen you can handle the DrawCell event to draw the center aligned image in a column header cell. Please try the attached sample and let me know if this helps.

Sample : GCColumnHeaderImage.zip

Best Regards,
Haneef


AD Administrator Syncfusion Team December 4, 2006 03:55 PM UTC

Great!!! Thanks!!! But now i have another question...

Can i do the same out of the event "DrawCell". Could i create a function that works like the event.

>Hi Surti,

Use the NumberedColumnHeader property to turn off the number in a column header of the grid. Andthen you can handle the DrawCell event to draw the center aligned image in a column header cell. Please try the attached sample and let me know if this helps.

Sample : GCColumnHeaderImage.zip

Best Regards,
Haneef


AD Administrator Syncfusion Team December 5, 2006 07:10 AM UTC

Hi Surti,

This can be achieved by using a custom celltype in a grid. It requires a model class and a renderer class. The model class handles the serialization requirements for the control and creates the renderer class. The renderer class handles the UI requirements of the cell.

Please refer to the below sample for more details.
GCColumnHeaderImage_9ec11c0d.zip

Best Regards,
Haneef


AD Administrator Syncfusion Team December 5, 2006 09:52 AM UTC

please, could you send me VB.NET code???

Thanks,
Surti

>Hi Surti,

This can be achieved by using a custom celltype in a grid. It requires a model class and a renderer class. The model class handles the serialization requirements for the control and creates the renderer class. The renderer class handles the UI requirements of the cell.

Please refer to the below sample for more details.
GCColumnHeaderImage_9ec11c0d.zip

Best Regards,
Haneef


AD Administrator Syncfusion Team December 5, 2006 10:36 AM UTC

Hi Surti,

Here is a VB sample.
VBSample.zip

Best Regards,
Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon