DataGrid column with numbers of rows

P

Przemo

In my DataGrid, I would like to put into the first column
number representing the number of row on screen.
I am using DataGrid1_ItemCreated event to color some rows
depending on data and I thougt that it could be a good
place to insert number of row into the first column.

But how to calculate this number?
I want diffrent way than keeping variable 'Count' in
session or StateView and incrementing it every
ItemCreated event is lunched.
Is it possible to read this from DataGrid?

Thank you.
 

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,177
Latest member
OrderGlucea
Top