Beispiel #1
0
 private void grdProductTypes_RowDataBound(object sender, GridViewRowEventArgs e)
 {
     if (e.Row.RowType == DataControlRowType.DataRow)
     {
         Label label = (Label)e.Row.FindControl("lbbrand");
         label.Text = ProductTypeHelper.GetBrandName(int.Parse(DataBinder.Eval(e.Row.DataItem, "TypeId").ToString()));
     }
 }