Datagrid and bullets

  • Thread starter Thread starter Bob H
  • Start date Start date
B

Bob H

Hi,

I've setup paging on an ASP.Net form using the datagrid. Is there any way to
add 'numbered bullets' to the output i.e.

1. Result row A
2. Result row B
3. Result row C
4. Result row D
.....etc

In an ASP page we did this using a For/Next and trundling through a
recordset. Will I need to do the same in .Net if I want the above formatted
output?

Many thanks.

Bob
 
Alternative to bullets, You can add serial numbers to rows by using the event named "OnItemDataBound"

Code will be something like this..

Sub RowSerial(s object, e as DataGridItemEventArgs
If e.Item.ItemType <> ListItemType.Header The
' Add serial to cell 0 her
End If
End su

Hope this helps.

Avnees
 

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

Back
Top