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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Custom row renderer or item template?

Thread ID:





140912 Nov 14,2018 12:53 AM UTC Nov 15,2018 09:17 AM UTC WinForms 3
Tags: SfListView
Asked On November 14, 2018 12:53 AM UTC

You have some nice screenshots with multiple lined rows and images and so forth.
Can't find a single example anywhere on how you do custom row renderers or item templates for SfListView.
NOT using Xamarin. Just plain WinForms.

Arulraj A [Syncfusion]
Replied On November 14, 2018 05:15 AM UTC

Hi Gurpal, 

Thanks for using Syncfusion products. 

To create the custom drawing for each item, you could handle the DrawItem event. Please refer the below code example and the sample,  

Code example  
this.sfListView1.DrawItem += SfListView1_DrawItem;  
private void SfListView1_DrawItem(object sender, Syncfusion.WinForms.ListView.Events.DrawItemEventArgs e)  
    if (e.ItemType == ItemType.Record)  
        this.DrawRTFText(e); //Custom drawing  
        e.Handled = true;  
Please let us know if you need any further assistance on this.  

Arulraj A 

Replied On November 14, 2018 08:24 PM UTC

Thank you so much! It's a shame there isn't a visual designer plugin for the item.

Arulraj A [Syncfusion]
Replied On November 15, 2018 09:17 AM UTC

Hi Gurpal, 

Thanks for your update. 

Using the DrawItem event you can customize as per your requirement. We believe this would be more flexible and straight forward than providing a designer plugin in Windows Form control. 

Please let us know if you need any further details on this. 

Arulraj A 


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

Live Chat Icon For mobile
Live Chat Icon