DOT.NET.DAWGS

Upland Consulting Group

About the author

Author Name is someone.
E-mail me Send mail

Recent comments

Tags

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2015

Listview DataRowView and ListViewDataItem

First you need to cast the listview item to a listviewdataitem, then you can cast it to a datarowview and pull out any information from the datasource like so

drv["Title"].ToString() 

 

CODE SNIPPET:

ListViewDataItem lvd = (ListViewDataItem)e.Item;

DataRowView drv = (DataRowView)lvd.DataItem;


Posted by rbellantoni on Wednesday, August 04, 2010 5:01 AM
Permalink | Comments (0) | Post RSSRSS comment feed