473,378 Members | 1,422 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Add image to grid.....

Hi i am fresher to the s/w field.. plz help me out..
Expand|Select|Wrap|Line Numbers
  1. <Columns>
  2.                     <asp:BoundField HeaderText="ID" DataField="ID" />
  3.                     <asp:BoundField HeaderText="BuisnessName" DataField="BuisnessName" />
  4.                     <asp:BoundField HeaderText="Category" DataField="Category" />
  5.                     <asp:BoundField HeaderText="Address" DataField="Address" />
  6.                     <asp:BoundField HeaderText="City" DataField="City" />
  7.                     <asp:BoundField HeaderText="ZipCode" DataField="ZipCode" />
  8.                     <asp:BoundField HeaderText="Telephone" DataField="Telephone" />
  9.                     <asp:BoundField HeaderText="Fax" DataField="Fax" />
  10.                     <asp:BoundField HeaderText="Email" DataField="Email" />
  11.                     <asp:BoundField HeaderText="Website" DataField="Website" />
  12.                     <asp:BoundField HeaderText="Description" DataField="Description" />
  13.                     <asp:BoundField HeaderText="Tags" DataField="Tags" />
  14.  
  15.  
  16.                     <asp:HyperLinkField DataNavigateUrlFields="ID"  DataNavigateUrlFormatString="grid.aspx?id={0}"
  17.                           Text="Edit"  NavigateUrl="~/grid.aspx" />//here i need a image
  18.                     <asp:TemplateField>
  19.                         <ItemTemplate>
  20.                             <asp:Image ID="Image1" runat="server" ImageUrl="~/delete.png" />
  21.  
  22.                             <asp:LinkButton runat="server" ID="lnkdelete" CommandArgument='<%# Eval("ID") %>'
  23.                                 CommandName="Delete">Delete</asp:LinkButton>
  24.                         </ItemTemplate>
  25.  
  26.                     </asp:TemplateField>
i need to add image in the same cell to the grid with hyperlink?
Thanks
Aug 22 '08 #1
0 868

Sign in to post your reply or Sign up for a free account.

Similar topics

21
by: DraguVaso | last post by:
Hi, I have an inherited DataGrid, that does lots of extra stuff. For exemple drawing a backgroundimage in every cell. The problem is that it's taking too much time (using gdi+), so I want to do...
3
by: Simon Harris | last post by:
Hi All, I have a data grid which displays country names. I now wish to display the country flag images above the names. Can someone please advise how I display an image in a datagrid? I have a...
0
by: Workgroups | last post by:
Not sure the best way to go about making this: I have 3 user defineable values - Width, Height, and Size. These values need to define a "grid" of some kind in the following manner: The Width is...
3
by: David Veeneman | last post by:
I'm trying to set images in a bound DataGridView image column. My enum has three possible values, and I have an image that I want to show for each value: EnumValue.OK --GreenLight.gif...
10
by: kaczmar2 | last post by:
Hey there, I have a large image in a browser window, and I would like a way to overlay grid lines on top of the image, so a user can show the grid or hide the grid lines. The grid would cover...
3
by: kaczmar2 | last post by:
Hey there, I have a large image in a browser window, and I would like a way to overlay grid lines on top of the image, so a user can show the grid or hide the grid lines. The grid would cover...
0
by: Job Lot | last post by:
I have designed a user interface with controls bound to data using Data Source Window. Draging and dropped customer table from Data Source Window created various navigation controls and a...
2
by: Samuel Shulman | last post by:
Hi Is it possible to add HyperLink functionality to the Image control in the data grid control Thank you, Samuel
0
by: Andrew | last post by:
Hello Ive been messing around with a simple raw image viewer using Pil and Tkinter However I am running into problems displaying the images they appear to be not correct I believe it is cause of...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.