How to change celltype on AutoGenerated columns

3 posts, 0 answers
  1. David Brenchley
    David  Brenchley avatar
    67 posts
    Member since:
    Jun 2010

    Posted 04 Nov 2010 Link to this post

    How do I change the celltype/celledittype on autogenerated columns?
    I've done the following but it doesn't work.  It assigned the template, but doesn't seem to display the template.

    private void fullyLoadedCostListRadGridView_AutoGeneratingColumn(object sender, GridViewAutoGeneratingColumnEventArgs e) {
        e.Column.CellTemplate = (DataTemplate)FindResource("telerikContentColumnTemplate");
    }
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 05 Nov 2010 Link to this post

    Hi,

     Actually this is the right way yo achieve this (and CellEditTemplate for editing). Can you verify using the debugger if this code is executed? Can you post more info about your grid declaration/creation and how the grid is bound?

    Sincerely yours,
    Vlad
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
  4. David Brenchley
    David  Brenchley avatar
    67 posts
    Member since:
    Jun 2010

    Posted 05 Nov 2010 Link to this post

    Yes the debugger shows this code executing and I can see the template attached after it is executed. 
    I have now gone a different route and am not using a datagrid for this anymore so it is no longer an issue. 
Back to Top