By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,654 Members | 1,842 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,654 IT Pros & Developers. It's quick & easy.

syntax question

P: n/a
Hi,

How would I reference the 4th column in a row within a dataset that is
populating a datalist? I am trying to access this value on the
itemdatabound event of the datalist so I can perform a query based on this
value.

Thx, Lerp
Nov 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Assuming e is the DataGridItemEventArgs

DataRowView rowView = e.Item.DataItem as DataRowView;
if(rowView != null) // rowView will be null for the header/footer, etc
{
object fourthColumn = rowView.Row[3];
}
"Lerp" <ad***@officience.ca> wrote in message
news:O4**************@TK2MSFTNGP10.phx.gbl...
Hi,

How would I reference the 4th column in a row within a dataset that is
populating a datalist? I am trying to access this value on the
itemdatabound event of the datalist so I can perform a query based on this
value.

Thx, Lerp

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.