-
Datagrid column captions
Dear friends,
I'm having a problem on trying to modify the captions of a Datagrid Columns.
Although setting the "Caption" property of every column of the datatable
the datagrid is bound to, when displaying the datagrid, the content of the
ColumnName property is displayed instead. This is supposed to be displayed
only if the Caption property is not explicitly set.
Has anybody ever come across this problem. Thank you very much in advance
for any feedback.
Best regards,
Damianos
-
Re: Datagrid column captions
Try this
******************************************************
Dim myGridColumns as GridColumnStylesCollection
myGridColumns = DataGrid1.TableStyles(0).GridColumnStyles
'format the columns
myGridColumns(0).HeaderText = "Column One"
myGridColumns(1).HeaderText = "Column Two"
myGridColumns(2).HeaderText = "Column Three"
myGridColumns(3).HeaderText = "Column Four"
**********************************************************
"Damian" <gavalas_damianos@yahoo.com> wrote in message
news:3cd97a43$1@10.1.10.29...
>
> Dear friends,
>
> I'm having a problem on trying to modify the captions of a Datagrid
Columns.
> Although setting the "Caption" property of every column of the datatable
> the datagrid is bound to, when displaying the datagrid, the content of the
> ColumnName property is displayed instead. This is supposed to be displayed
> only if the Caption property is not explicitly set.
>
> Has anybody ever come across this problem. Thank you very much in advance
> for any feedback.
>
> Best regards,
> Damianos
>
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks