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

Can not set border for auto column - bug ?

1 Answer 32 Views
Grid
This is a migrated thread and some comments may be shown as answers.
arijit
Top achievements
Rank 1
arijit asked on 22 Nov 2008, 05:47 AM

I am using rad grid where i can set border color as below
<

 

telerik:GridBoundColumn ItemStyle-BorderColor="#B6C5D3" ..............

but when i am using auto generated column the color is not reflecting.
i tried to set ItemStyle-BorderColor in radgrid, master table view and item style, but no result.
I am using radgrid.net2 4.6.1.0. Is it a bug ?
please help, it is urgent.

Regards

 

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 24 Nov 2008, 07:28 AM
Hello Arijit,

You can try setting the column border-color in the ColumnCreated event of the grid as shown below:
cs:
 protected void RadGrid1_ColumnCreated(object sender, GridColumnCreatedEventArgs e) 
    {        
            e.Column.ItemStyle.BorderColor = System.Drawing.Color.Red;          
        
    } 

Thanks
Princy.


Tags
Grid
Asked by
arijit
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or