private void Grid_RowCreated(object sender, GridViewRowEventArgs e) { for (int i = 0; i < e.Row.Cells.Count - 2; i++) { if (!IsEmptyCell(e.Row.Cells[i])) { e.Row.Cells[i].Text = Titles.Get(e.Row.Cells[i].Text); } } }
private void Grid_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.Header) { for (int i = 0; i < e.Row.Cells.Count; i++) { e.Row.Cells[i].Text = Titles.Get(e.Row.Cells[i].Text); } } }
private string GetLocalizedResource(string key) { return(Titles.Get(key)); }