[thelist] ASP.NET: Logic on a DataGrid?

Ed McCarroll Ed at ComSimplicity.com
Fri Aug 18 15:04:38 CDT 2006


> MyImg is based on columnA, which is an integer. I need to do some
> math based on other criteria and then set the image URL accordingly

You could put code in a handler for the datagrid's ItemDataBound
event, which, based upon your criteria, assigns a URL to
MyImg.ImageUrl.
-------------------------------------------------------------------- 
Ed McCarroll                                          (310) 838-4330
Ed at ComSimplicity.com                    http://www.ComSimplicity.com



More information about the thelist mailing list