Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > SelectedItem after DataBinding--get DataRow?

Thread Tools

SelectedItem after DataBinding--get DataRow?

Matt C.
Posts: n/a
If I databind a DataTable to a dropdown list in Winforms, the SelectedItem
is actually the entire DataRow from the datatable. If I want to access
columns that were not part of the display, I can do that.

It doesn't look like I can do that in ASP.NET. After databinding, the
SelectedItem appears to be the display string only.

Is this impression correct? Is there any way to get back the rest of the
datarow via the databound control?

(Obviously I can stick the whole DataTable in ViewState or something like
that, that's not what I'm asking.)

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can access SelectedItem in Web Control after FindControl JB ASP .Net 1 03-08-2009 12:00 AM
Problem assigning selectedItem.Value to a dropdownlist filled with OnItemDataBound Antonio D'Ottavio ASP .Net 1 09-19-2005 09:41 AM
dropdown list selecteditem changes after page.unload event Justin Bartels ASP .Net 2 10-21-2003 02:35 AM
Re: Dropdownlist and SelectedItem in ASP.Net Jos Branders ASP .Net 6 06-25-2003 08:15 PM
Re: Dropdownlist and SelectedItem in ASP.Net Marina ASP .Net 0 06-25-2003 01:40 PM