Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to provide a sequential number for each row

$
0
0

This example demonstrates how to numerate rows in the grid. For that purpose, a new unbound column will be added. The the CustomColumnDisplayText event will be handled to assign numbers to the cells in this column.

Question Comments

Added By: deepakvasudevan at: 8/21/2012 7:21:54 AM    

A small correction. In the code behind example the assignment should read as

e.DisplayText = (e.VisibleRowIndex +1 ).ToString();

to make it more realistic. Zero Indexing is too technical to address common man.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>