Displaying an Image in Grid View in ASP.Net
-
Hi, I need to display a image in grid view. the image will vary for every record (i.e) if the data in the row is of less priority then the image will be in red color and if it is in high priority, then of some other color. and Probably the image will be stored in the database Can somebody suggest some mechanism for this. Thanks in advance
-
Hi, I need to display a image in grid view. the image will vary for every record (i.e) if the data in the row is of less priority then the image will be in red color and if it is in high priority, then of some other color. and Probably the image will be stored in the database Can somebody suggest some mechanism for this. Thanks in advance
Hi, in the dataRowBound event of gridview you can write code for the same. You have to add one column in that you can bind data for priority, then in another column add template field and add image in that,now in dataRowBound event check for priority column and accordingly bind image. Hope it will help you.
Thanks, Sun Rays To get something you must have to try once. My Articles
-
Hi, I need to display a image in grid view. the image will vary for every record (i.e) if the data in the row is of less priority then the image will be in red color and if it is in high priority, then of some other color. and Probably the image will be stored in the database Can somebody suggest some mechanism for this. Thanks in advance
Hi Anuradh, use this following link....you can get some idea from here. http://www.codeproject.com/KB/aspnet/GridImage.aspx[^]
Best Regards ----------------- Abhijit Jana View My CodeProject Articles "Success is Journey it's not a destination"