all groups > dotnet windows forms > january 2005 >
You're in the

dotnet windows forms

group:

Rename Datagrid columns, How???


Rename Datagrid columns, How??? zt
1/30/2005 4:33:30 PM
dotnet windows forms:
How to loop for each datagrid column and rename it?
Is it different mechanism if this is webform?
Here You have example i have tryed

For Each col As System.Web.UI.WebControls.DataGridColumn In DataGrid.Columns
col.HeaderText = Translate(col.HeaderText)
Next

But it does not work? Why?

-jari

Re: Rename Datagrid columns, How??? MajorTom
1/30/2005 9:47:33 PM
You have to look for dataGridTableStyle and GridColumsStyle

MajorTom

[quoted text, click to view]

Re: Rename Datagrid columns, How??? zt
1/31/2005 10:41:28 AM
[quoted text, click to view]

Yes, i try dataGridTableStyle with webform and datagrid but it does not
work?
Little example would help with tablestyles.

-jari

AddThis Social Bookmark Button