467,134 Members | 1,068 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,134 developers. It's quick & easy.

Binding DataSet with changed col. captions

Hi. My question is regarding binding a DataSet to a
DataGrid. When I change Caption property of all column in
my dataset and then bind dataset to a DataGrid, new
caption aren't displayed in a grid header. A DataGrid
displays captions (field names) from a query that was used
to build a dataset.

For example (this is not a real example), I have a dataset
build on "Select OrderID from Orders". I then change a
caption property of a first column to 'Order Number' and
bind my dataset to a grid. In column header I
see 'OrderID', not 'Order Number'.

Is that a bug? Does anybody have similar problems?
I know that to solve my problem I can include a new
caption in a select statement (Select OrderID [Order
Number] from Orders). But in my case, I need to change it

Also, I'm just curious. I would think that DataGrid
display column headers from Caption properties of each
Nov 17 '05 #1
  • viewed: 926

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Jesse | last post: by
reply views Thread by Empire City | last post: by
13 posts views Thread by Paul Slavin | last post: by
19 posts views Thread by Simon Verona | last post: by
3 posts views Thread by TS | last post: by
reply views Thread by oracle | last post: by
reply views Thread by sercanparlak@gmail.com | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.