Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to change headers on webform datagrid
Message
General information
Forum:
ASP.NET
Category:
WebForms
Miscellaneous
Thread ID:
00680143
Message ID:
00680162
Views:
21
This message has been marked as the solution to the initial question of the thread.
In DataGrid.ItemCreated event, the following code will work...

e.Item.Cells[0].Text = "MyHeading";

>In my datagrid I have a Create columns automatically at run time turned ON. I only have one column and it is a button column for selecting a record. Under General, I do not have any datasource. In my form, I have the user select a date range and then click a query button. During the query, I use the vfptoolkit to create a connection and run a stored procedure. I then put the data into a data view and bind the dataview to the datagrid. The grid shows up, but it has the field names for the headers. Before it displays, I want to replace the field name with better descriptions. Does anyone know where I would do that maybe even some snippit of code?
>
>Kirk
- Jayesh
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform