This is a migrated thread and some comments may be shown as answers.

issue in column header

1 Answer 81 Views
GridView
This is a migrated thread and some comments may be shown as answers.
basma
Top achievements
Rank 1
basma asked on 26 Oct 2010, 07:11 AM

hi,

i have a problem in column header if i set field name contain "." or multi "_" did not display any data

please replay as soon as possible 

1 Answer, 1 is accepted

Sort by
0
Accepted
Emanuel Varga
Top achievements
Rank 1
answered on 26 Oct 2010, 08:00 AM
Hello,

If you want to change the column header, you should not use the FieldName property, for this you can use the HeaderText property, which you can set in the DataBindingComplete event if you are using a binded grid, or in the Visual Studio Designer using PropertyBuilder.

An example, in the DataBindingComplete would be:
void radGridView1_DataBindingComplete(object sender, GridViewBindingCompleteEventArgs e)
{
    radGridView1.Columns["ColumnFieldName"].HeaderText = "D.o.t.s...____U_n_d_e_r_s_c_o_r_e_s";
}

Hope this helps, if you have any other questions or comments, please let me know,

Best Regards,
Emanuel Varga
Tags
GridView
Asked by
basma
Top achievements
Rank 1
Answers by
Emanuel Varga
Top achievements
Rank 1
Share this question
or