Exemplo n.º 1
0
 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);
         }
     }
 }
Exemplo n.º 2
0
 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);
         }
     }
 }
Exemplo n.º 3
0
 private string GetLocalizedResource(string key)
 {
     return(Titles.Get(key));
 }