llmclaughlin
Programmer
Trying to show image only for the lowest offer_amount row. How would you determine that value?
Private Sub dgdCurrent_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles dgdCurrent.RowDataBound
If e.Row.RowType = DataControlRowType.DataRow Then
If mdecLowOffer < Convert.ToDecimal(DataBinder.Eval(e.Row.DataItem, "OFFER_AMOUNT")) Then
mdecLowOffer = Convert.ToDecimal(DataBinder.Eval(e.Row.DataItem, "OFFER_AMOUNT"))
e.Row.FindControl("lbEDITER").Visible = True
Else
e.Row.FindControl("lbEDITER").Visible = False
End If
End If
End Sub
Thanks
Louie
Private Sub dgdCurrent_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles dgdCurrent.RowDataBound
If e.Row.RowType = DataControlRowType.DataRow Then
If mdecLowOffer < Convert.ToDecimal(DataBinder.Eval(e.Row.DataItem, "OFFER_AMOUNT")) Then
mdecLowOffer = Convert.ToDecimal(DataBinder.Eval(e.Row.DataItem, "OFFER_AMOUNT"))
e.Row.FindControl("lbEDITER").Visible = True
Else
e.Row.FindControl("lbEDITER").Visible = False
End If
End If
End Sub
Thanks
Louie