Sign in
|
Join
in
Datagrid Girl (blog)
Original ASP.NET Community Bloggers (group)
(Entire Site)
ASP.NET Weblogs
Home
Blogs
This Blog
Home
About
Syndication
RSS
Atom
Comments RSS
Recent Posts
GridViewGirl.com -- now live
Google Ads
New Microsoft Certs
Sorting with Datagrid ViewState disabled
showModalDialog and postbacks in ASP.NET
Tags
Software For Your Head
My Sites
DatagridGirl.com
Technorati Profile
GridViewGirl.com
Archives
November 2005
(1)
October 2005
(2)
August 2005
(2)
June 2005
(1)
October 2004
(2)
September 2004
(1)
July 2004
(1)
June 2004
(13)
May 2004
(41)
April 2004
(28)
March 2004
(31)
February 2004
(5)
January 2004
(1)
November 2003
(1)
September 2003
(7)
August 2003
(12)
July 2003
(22)
June 2003
(41)
May 2003
(20)
April 2003
(15)
March 2003
(10)
Datagrid Girl
Marcie, ASP.NET Datagrid Blogger Girl
DropdownLists in a Datagrid, and DataReaders
When people on the
Forums
ask about using DropDownLists inside a Datagrid, I usually point them to my pal
Alex Lowe's
code sample
here
. Yesterday someone had some trouble implementing this sample, because they were using a DataReader and the sample is based on a DataSet.
Word to the wise, when using DataReaders, you need to change this line:
Dim myRow As DataRowView = CType(e.Item.DataItem, DataRowView)
to:
Dim myRow As System.Data.Common.DbDataRecord= CType(e.Item.DataItem, System.Data.Common.DbDataRecord)
Happy Datagridding!
Published
Mar 13 2003, 12:38 PM
by
datagridgirl
Comments
Scott Watermasysk
said:
We need to get you your own template :D
March 13, 2003 2:10 PM
Datagrid Girl
said:
Yep, I'd love a pink skin! (for the blog, that is)
March 13, 2003 2:22 PM
John Raezer said:
Any idea what line to use for Dim myRow when are are binding from a ListDictionary?
jraezer@yahoo.com
August 12, 2003 7:02 AM
Bob MacLeod
said:
Thank you!! I ate up a ridiculous amount of time trying to resolve the DataReader error you refer to.
December 11, 2003 1:01 PM
Leave a Comment
Name
(required)
Your URL
(optional)
Comments
(required)
Remember Me?
Add
Terms of Use