Results 1 to 5 of 5

Thread: datagrid headers

  1. #1

    Thread Starter
    Frenzied Member EyeTalion's Avatar
    Join Date
    Jul 2000
    Location
    New York
    Posts
    1,075

    datagrid headers

    How do I change the names of the headers in a datagrid...in ASP.NET you could do it in the property builder, but that function does exist in VB.NET

  2. #2
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    use TableStyles

  3. #3

    Thread Starter
    Frenzied Member EyeTalion's Avatar
    Join Date
    Jul 2000
    Location
    New York
    Posts
    1,075
    is there a property in there to change the header text?

  4. #4
    Addicted Member
    Join Date
    Aug 2002
    Location
    top of the mountain
    Posts
    234

  5. #5
    Member
    Join Date
    Dec 2002
    Location
    NY, USA
    Posts
    52
    Code:
    ts = New DataGridTableStyle()
            ts.MappingName = "PRQ"
            c = New DataGridTextBoxColumn()
            c.MappingName = "ZIP"
            c.Width = 50
            c.HeaderText = "ZIP"
            c.Format = "G4"
            ts.GridColumnStyles.Add(c)
    
    'do the same for every column
    
            DataGrid1.TableStyles.Add(ts)
    Iouri Boutchkine

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