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

Custom row renderer or item template?

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.

3 Replies

AA Arulraj A Syncfusion Team November 14, 2018 12:15 AM

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 

GU gurpal-two-k November 14, 2018 03:24 PM

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

AA Arulraj A Syncfusion Team November 15, 2018 04:17 AM

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 

Live Chat Icon For mobile
Up arrow icon