Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to mark lowest value in grid

Status
Not open for further replies.

llmclaughlin

Programmer
Aug 20, 2004
140
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top