Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: One last Q: Accessing the ItemArray in a dataset by column name?


Message #1 by "Oliver, Wells" <WOliver@l...> on Fri, 11 Oct 2002 10:19:36 -0700
I have this:
if (this.objDS.Tables["WC_WebPartNumber"].Rows[0].ItemArray[15].ToString()
== optionItem)
 
((DropDownList)e.Item.FindControl("LionChangeFlag")).Items.FindByText(option
Item).Selected = true;

However, I want, rather than ItemArray[15], to do something like
ItemArray["LION_FLAG"], where LION_FLAG is the actual name of the column.

Any tips?

Wells Oliver
Web Application Programmer
Leviton Voice & Data
xxx-xxx-xxxx
http://www.levitonvoicedata.com


  Return to Index