Rename Datagrid columns, How???

  • Thread starter Thread starter zt
  • Start date Start date
Z

zt

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
 
You have to look for dataGridTableStyle and GridColumsStyle

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

-jari
 
Back
Top