Velocity Reviews

Velocity Reviews (
-   ASP .Net (
-   -   Datagrid and bullets (

Bob H 02-05-2004 12:47 PM

Datagrid and bullets

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

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

Many thanks.


=?Utf-8?B?QXZuZWVzaA==?= 02-05-2004 01:26 PM

RE: Datagrid and bullets

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.



SEO by vBSEO ©2010, Crawlability, Inc.