Typesd List and Captions used with vs2005 datagrid

Posts   
 
    
BOb
User
Posts: 12
Joined: 29-Jun-2005
# Posted on: 21-Oct-2005 16:51:17   

Please can anyone tell me how to get the vs2005 data grid to pickup the captions I have defined in my typed data list.

when the list is dragged on to the form and the grid bound to it, the database column names are shown in the column titles.

this does not change even when the grid is populated with data.

many thanks

BOb

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 22-Oct-2005 10:05:33   

True, the caption is set in the DataColumn objects for the typedlist generated, though grids and controls are free to not use it. In 2003 this also was sometimes not showing up.

Workaround: walk the datacolumn collection in the typedlist and set the captions for the columns in the grid from the Caption fields. I don't know why the grid doesn't pick them up.

Frans Bouma | Lead developer LLBLGen Pro
pilotboba
User
Posts: 434
Joined: 05-Aug-2005
# Posted on: 22-Oct-2005 20:55:37   

BOb wrote:

Please can anyone tell me how to get the vs2005 data grid to pickup the captions I have defined in my typed data list.

when the list is dragged on to the form and the grid bound to it, the database column names are shown in the column titles.

this does not change even when the grid is populated with data.

many thanks

BOb

Hey! That's my sign off. !!!

BOb

BOb
User
Posts: 12
Joined: 29-Jun-2005
# Posted on: 25-Oct-2005 14:48:29   

Indeed that my be true, but I got here first !