Dynamically adding image to a datagrid column
-
Hi, I have a datagrid that is databound. One of the fields is a 'date' field(which comes from database). What I need to do is that if the date is current data , i.e. today's date then I need to display an animated image of 'New' sign next to it and it is anything other than today(which is ofcourse past date :)) then I need to display animated 'Old' sign image. I have the images saved in the same directory as the application. I have also created a template column for the Image and a Itemdatabound sub but I do not know th exact method or syantax to include an image file in the Itemdatabound Event. Any help anyone please? thanks a ton! Aartee. ...HE is watching Us All!
-
Hi, I have a datagrid that is databound. One of the fields is a 'date' field(which comes from database). What I need to do is that if the date is current data , i.e. today's date then I need to display an animated image of 'New' sign next to it and it is anything other than today(which is ofcourse past date :)) then I need to display animated 'Old' sign image. I have the images saved in the same directory as the application. I have also created a template column for the Image and a Itemdatabound sub but I do not know th exact method or syantax to include an image file in the Itemdatabound Event. Any help anyone please? thanks a ton! Aartee. ...HE is watching Us All!
Eureka!!! I got it... Aartee. ...HE is watching Us All!