65.9K
CodeProject is changing. Read more.
Home

Data bound ListView control

starIconstarIconstarIcon
emptyStarIcon
starIcon
emptyStarIcon

3.10/5 (18 votes)

Nov 25, 2003

CPOL
viewsIcon

52363

downloadIcon

1611

C# implementation of data bound ListView control

Introduction

This is a data bound / data-aware ListView control written in C#. Well, since I didn't find such control for C# - I’ve decided to convert the existing one, from MSDN, originally written in VB. I made just a few small changes to the original code:

  1. null object referenced properties are displayed as empty strings now (originally was NullReference exception text)
  2. I set ListViewItem.Tag property to the referenced object.

Disclaimer

I am not an author / person, who originally wrote this control in VB. Please address all questions to the original author: Rockford Lhotka, Magenic Technologies Inc. Original code and article located at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnadvnet/html/vbnet08262002.asp