Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: Grid headers

$
0
0
Re: Grid headers
Web Connection 5.0
Re: Grid headers
Jan. 5, 2013
02:25 am
3OO057BS9Show this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:BrianW

What are you using to generate the grid? If you're using the wwWebDataGrid, there's a Columns collection that you can access and set the HeaderText on:

loColumn = loGrid.Columns[3] loColumn.HeaderText = "New Text"

Note this only works if you manually add the columns to the grid, rather than using AutoGenerateColums to auto-fill them because that creates the columns at render time only.

Of course if you're manually creating the columns you can assign dynamic values when you create the column in hte first place.

+++ Rick ---


Any ideas about how I can programmatically change the content of a grid header text? I have a diary system that shows up to 13 booking periods for a Driving instructor in each day. Unfortunately the start times can vary and I want to show each period start times as column headers - these times are determined from an Instructor record.



Rick Strahl
West Wind Technologies


from Maui, Hawaii

Making waves on the Web


Viewing all articles
Browse latest Browse all 10393

Trending Articles