I am using Radgridview which has AutoGenerateColumns= "true" and binding it to a Datatable. Now based on conditions I have to add a border around the entire column red/green/blue. Different columns can have different colored border. Can you please suggest an approach to it.
2 Answers, 1 is accepted
answered on 29 Jun 2012, 11:37 AM
You can predefine GridViewCell's template, in order to modify the "PART_CellBorder" border's BorderBrush. By default it is bound to GridViewCell's VerticalGridLinesBrush property, which is not publicly settable. Then you can propagate the new template with a style, using a CellStyleSelector for the separate columns.
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>