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

AutoGenerateColumns except for some

3 Answers 55 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jeremy
Top achievements
Rank 1
Jeremy asked on 12 Jun 2012, 07:44 AM
Hi,

Is it possible to define a couple of columns at designtime ('For Hyperlinks') and have the rest be autogenerated?

<telerik:RadGridView.Columns>
             <telerik:GridViewHyperlinkColumn Header="From"
                             DataMemberBinding="{Binding From}" ValidatesOnDataErrors="InViewMode">
             </telerik:GridViewHyperlinkColumn>    
              <telerik:GridViewHyperlinkColumn Header="To"
                             DataMemberBinding="{Binding To}" ValidatesOnDataErrors="InViewMode">
             </telerik:GridViewHyperlinkColumn>                       
            </telerik:RadGridView.Columns>     

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 12 Jun 2012, 07:46 AM
Hi,

 Indeed you can do that. 

Greetings,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Jeremy
Top achievements
Rank 1
answered on 12 Jun 2012, 07:49 AM
Thanks for your quick reply,

Unfortunately it replicates the From/To fields.
0
Dimitrina
Telerik team
answered on 12 Jun 2012, 08:02 AM
Hello,

 Please check this help article for an example on how to prevent duplicating the columns.

All the best,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
Jeremy
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Jeremy
Top achievements
Rank 1
Dimitrina
Telerik team
Share this question
or