Results 1 to 2 of 2

Thread: [RESOLVED] [2005] Gridview Question

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2001
    Location
    Mass USA
    Posts
    1,674

    Resolved [RESOLVED] [2005] Gridview Question

    Hey folks!
    I got a gridview that is displaying some data from a dataset. One of the fields in the datatable fields holds a 1 digit alpha code(ex a,b,c etc..). Each letter represents something different. Is there a way I could show the description instead of the letter? There is only a total of 10 letters being used, so I don't know if I could just put in a select statement somewhere to display what I want?

  2. #2

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2001
    Location
    Mass USA
    Posts
    1,674

    Re: [RESOLVED] [2005] Gridview Question

    got it... didn't think it would be that simple.

    vb Code:
    1. With gvItemList
    2.                 For i = 0 To .Rows.Count - 1
    3.                     If .Rows(i).Cells(7).Text = "G" Then
    4.                         .Rows(i).Cells(7).Text = "Retail"
    5.                     End If
    6.                 Next
    7.             End With

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width