GridView - Add Custom Column

L

Loopsludge

I have a GridView bound to a query. I need to add a column which is
not returned in the query. To do this, I've added a templatefield to
the GridView control and gave it a column header (text). But I can't
figure out how to write in the desired value
(e.Row.RowIndex.ToString()) to that column as each row is created.

In short can anyone show me how I can write a value
(e.Row.RowIndex.ToString()) into a GridView column on the RowCreated
event?

Thanks in advance,
Loopsludge
 

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,770
Messages
2,569,584
Members
45,077
Latest member
SangMoor21

Latest Threads

Top