Get DataField Item of a Column?

M

mianiro

Is it possible to dynamically get the datafield item that populates a
column in gridview?

Something like grid.columns(0).????
 
E

Eliyahu Goldin

If you handle RowDataBound event, DataItem property points you to the
datasource item bound to the row. You can typecast it to your datasource
type and access the datasource fields or properties.
 

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,774
Messages
2,569,599
Members
45,162
Latest member
GertrudeMa
Top