DataColumn Caption property doesn't works.
C#
1
Posts
1
Posters
8
Views
1
Watching
-
Hi, i've got a little problem when trying to change a datarow caption property. Lets say that i've : - one DataTable named dTable; - the DataTable as 4 DataColumns; - supose that dTable.Columns[0].ColumnName="CodTerc" and i do: dTable.Columns[0].Caption = "Código"; After doing this i expected that my Grid has the first column caption = "Código", but unexpectedly the caption ="CodTerC". I know that by default datarow caption= datarow columnName, but when i change caption i expect that my grid shows the caption not the ColumnName. If someone has an answer for this please say something. Thanks Carlos Lopes