This question is locked. New answers and comments are not allowed.
I want to reset the value of a cell when it has been loaded. I have a handler for the CellLoaded event,
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
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