troubleshooting Question

Conditional Formatting on DataGrid and Graphs. asp.net

Avatar of phoenixfire425
phoenixfire425Flag for United States of America asked on
.NET ProgrammingASP.NETVisual Basic.NET
17 Comments1 Solution659 ViewsLast Modified:
I have a page that i am working on and i am trying to do a couple of things that i cannot seem to get to work.

First is Conditional Formatting.
I have researched and tried to test a variety of solutions to have a value get highlighted if below a value.
i was using this script in my code behind and i cannot get this to work on the page.

__________
Sub ItemDataBoundEventHandler(sender as Object, e as DataGridItemEventArgs)
   If e.Item.ItemType = ListItemType.Item OR _
      e.Item.ItemType = ListItemType.AlternatingItem then
      'Check to see if the price is below a certain threshold
      Dim price as Double
      price = Convert.ToDouble(DataBinder.Eval(e.Item.DataItem, "price"))
     
      If price < 10.0 then
          e.Item.BackColor = System.Drawing.Color.Yellow
      End If
   End If
End Sub
_________________

Second i would like also to have some type of graph on the page to for the datagrid. And I cannot find anything that even gets close to working for me on this.  And if there is a possible way can i have a java screen show this on a mouse over?

Lastly is there a way to have the ASP.Net page calculate a value for a column instead of having SQL do this?

Any Help would be great.
Thank You
ASKER CERTIFIED SOLUTION
Dustin Hopkins
Senior Web Developer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 17 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 17 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros