Hi,
I need to set the background image of the grid view cell according to the data. Is there any way to do this?
Thanks,
Anup
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Mahesh ChandPosted Sep 17, 2007, 1:27 PM
Here is an example of ASP.NET GridView:
http://msdn2.microsoft.com/en-us/library/aa479350.aspx
Mahesh ChandPosted Sep 17, 2007, 1:26 PM
You will have to use DataGridViewImageColumn to display images. This example shows how to display images in a DataGridView column.
http://www.c-sharpcorner.com/UploadFile/mahesh/dbinDlinq07022007080049AM/dbinDlinq.aspx
If you are using ASP.NET GridView, use the ImageField and bind with the URL of the image.