Get DataField Item of a Column?

  • Thread starter Thread starter mianiro
  • Start date Start date
M

mianiro

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

Something like grid.columns(0).????
 
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.
 
Back
Top