Problems with rendering grid

Nov 27, 2014 at 5:20 PM
Edited Nov 27, 2014 at 5:23 PM
Hi,

I have problems with rendering grid. My models are:
Model Country
{
  string int Id {get; set;}

  // localization name in DB(two languages)
  string Name_EN {get;set;}
  string Name_RU {get;set;}
}

Model Office
{
  int Id {get;set;}
  string Name {get;set;}
  int CountryId {get;set;}
  virtual Country Country {get;set;}
}
When I try to populate table 'Country' all right
            columns.Add(typeof(Country).GetProperty("Name" + "_" + CultureHelper.GetCurrentLanguage()))
                .Titled(Resources.Country)
                .SetWidth("90%");
+ - it's plus for concat string

I don't know how I can write expression for displaying column 'Country' on the table 'Office' for populate right value depends of my locale(english - default, russia - other case)

What you can advise?