Datagrid and bullets

Discussion in 'ASP .Net' started by Bob H, Feb 5, 2004.

  1. Bob H

    Bob H Guest

    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
    Bob H, Feb 5, 2004
    #1
    1. Advertising

  2. 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
    =?Utf-8?B?QXZuZWVzaA==?=, Feb 5, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. ComputerSnack
    Replies:
    7
    Views:
    1,839
    Jonathan N. Little
    Apr 13, 2006
  2. babz
    Replies:
    0
    Views:
    430
  3. Paul Lautman

    List item bullets

    Paul Lautman, Dec 28, 2006, in forum: HTML
    Replies:
    15
    Views:
    797
    Jonathan N. Little
    Dec 31, 2006
  4. Helpful person

    float, <li> bullets and IE7

    Helpful person, May 18, 2009, in forum: HTML
    Replies:
    2
    Views:
    727
    Helpful person
    May 18, 2009
  5. ssg31415926

    BulletedList and Unordered List - no bullets are displayed

    ssg31415926, Sep 21, 2006, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    928
    ssg31415926
    Sep 21, 2006
Loading...

Share This Page