Click here to Skip to main content
15,896,201 members
Articles / Programming Languages / C#
Article

Data bound ListView control

Rate me:
Please Sign up or sign in to vote.
3.10/5 (18 votes)
24 Nov 2003CPOL 52.2K   1.6K   16   1
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

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
United States United States

Senior System Architect with 11+ yrs experience. Masters degree in CS (PhD is
in progress). Experienced in design and implementation of enterprise wide computer systems,
n-Tier applications, application servers, computer vision, image analysis and
AI. Provide project design, development and management consulting services
through owned company http://www.xpidea.com


Comments and Discussions

 
GeneralFor a really databound listview Pin
Member 53460827-Nov-03 3:12
Member 53460827-Nov-03 3:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.