Accessing data from C# code-behind in the ItemDataBound Event

H

hchattaway

Hello:

If I want to access a particular column of data that is bound to a
datagrid from within the ItemDataBound Event, how would I do that?

I am trying to construct a NavigationURL on the fly based on multiple
fields. I am creating a URL with multiple parameters....

?edititem.aspx?parm1=x&parm2=y

X and Y I want to populate with data from the current row...
Thanks
Harold
 
E

Eliyahu Goldin

Harold,

Use e.Item.Cells(i) where e is the event parameter and i is the column
number.

Eliyahu
 
E

Elton Wang

Hi,

Please see my anwser to ?how to get to the underlying data
in a datagrid control posted on Dec. 16/04

Elton Wang
(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top