2009-07-31 9 views

Répondre

1

vous pouvez le faire dans la grille événement RowDataBound .. comme ...

protected void grd_RowDataBound(object sender, GridViewRowEventArgs e) 
{ 
    if (e.Row.RowType == DataControlRowType.DataRow) 
    { 
     System.Data.DataRowView dr = (System.Data.DataRowView)e.Row.DataItem; 
     if (string.IsNullOrEmpty(dr["column"].ToString())) 
     { 
      //add your control or set visibility of ur control 
     } 
    } 
} 
Questions connexes