I'm trying to figure out how to loop thru each row of a gridview that is bound by a sql datasource.  If the lblDate is less than todays date, then I need to disable the button in that row.  Here's what I came up with, but it isn't quite right.  Any suggestions? 
protected void gvSubmitted_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { Label lblDate == row.FindControl("lblDate") as TextBox; if (lblDate < getDate) { btnUpdate.enabled = false; } } }

Go to the complete details ...