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

Set cell value on CellLoaded event

0 Answers 61 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 16 May 2011, 09:31 AM
I want to reset the value of a cell when it has been loaded. I have a handler for the CellLoaded event,

private void labelsGridView_CellLoaded(object sender, Telerik.Windows.Controls.GridView.CellEventArgs e) 
    if (e.Cell is Telerik.Windows.Controls.GridView.GridViewCell && e.Cell.Column.UniqueName.Equals("YourLanguage")) 
    
        ((GridViewCell)e.Cell).Value = ApplicationContainer.GetTranslation(TranslationTypeId, (String)((GridViewCell)e.Cell).Value); 
    

All works fine, I get my translation text, but although I set the Value, when the GridView is shown, it still contains the original text. And I couldn't use a converter on the GridView column because I cannot pass a bound parameter to a converter (shame).

Cheers,

Paul

No answers yet. Maybe you can help?

Tags
GridView
Asked by
Paul
Top achievements
Rank 1
Share this question
or