Localizing column headers

T

tiede

Hi group,

I have a problem with the datagridview component.

I use a BindingSource and BindingList<T> to databind my collection of
business objects to the DataGridView. The databinding uses the property
names of the business object to display the text of the column headers.
Im writing a globalized application and would like to display the
column headers from a resource file.

How can I do that?

Cheers and thanks in advance

Kim
 
C

ClayB

To explicitly set header text, try code such as:

string colMappingName = "Col1";
string colHeaderText = "HeaderTextFor Col1";
this.dataGridView1.Columns[colMappingName].HeaderText = colHeaderText;



Clay Burch
Syncfusion, Inc.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top