Serial Number In Datagridview Vb Net Excel
Posted on
RowPostPaint ' Automatically maintains a Row Header Index Number ' like the Excel row number, independent of sort order Dim grid As DataGridView = CType(sender, DataGridView) Dim rowIdx As String = (e.RowIndex + 1).ToString() Dim rowFont As New System.Drawing.Font('Tahoma', 8.0!, _ System.
Vb.net Excel Cell Format
24 Mar 2010CPOL
May occasions we need to give Serial numbers to our grid like 1,2,3,4,5, this I have tried my hand for a while and what I found.....I have posted it in someones questions earlier. We can give alphabets also but its usage is limited so that part is omitted. (it is somewhat tedious...
May occasions we need to give Serial numbers to our grid like 1,2,3,4,5, this I have tried my hand for a while and what I found.....
I have posted it in someones questions earlier. We can give alphabets also but its usage is limited so that part is omitted. (it is somewhat tedious also).
This code works as same when we apply paging.
We cannot use this on BoundFields because they support only those objects who have Databinding event