DataGrid and colum caption



VB .NET 2003
Windows Forms Controls

Hello,
I have a dataset, whose structure is defined in an XML schema. In the
XML Schema, every field has a caption attribute.

This dataset is bound to a grid (via the VB Designer).

But the column header text matches the field name and not the caption
attribute (desired behavior).

Is there a way to instruct the datagrid to display the caption
attribute of the field instead of its name?

I have seen this topic in the past, but I didn't find an answer that
did not require me to process each column individually. Creating a
column style for each column is a bad approach from a maintenance point
of view. Can't I achieve the same result by a few clicks in the
designer, or a few lines of code, that would handle all columns at
once?

Thanks for your help,
Thomas

.



Relevant Pages

  • Re: XML Dataset Schema and Required Fields
    ... that Janus GridEX.net with MS Access using the designer, ... > I have created an XML Schema Dataset by dragging and dropping MS Access ...
    (microsoft.public.dotnet.languages.vb)
  • Datatables in Datasets no accessible
    ... created a XML Schema in the designer, created a dataset based on this ... I don't get any intellihelp like i do with the Office datatable. ... settings and properties as I can, and they all seem to be the same no ...
    (microsoft.public.dotnet.languages.csharp)
  • DataSet Designer Error
    ... I am trying to drop a Stored procedure into the designer but the designer is throwing an error stating that the Xml Schema can not be interpreted from this object. ...
    (microsoft.public.dotnet.framework.adonet)