add column with hyperlink column

I am using hyperlinkcolumn in my datgrid,


<Columns>
<asp:HyperLinkColumn DataNavigateUrlField="Reference" DataNavigateUrlFormatString="{0}" DataTextField="Form"
DataTextFormatString=" {0}"></asp:HyperLinkColumn>
</Columns>
Its working well ,Now my problem is that i want to associate one more column in this datagrid which contain a logo image which is same for all rows, how should i do that
Thanks in advance
0
kalia_prashant
11/18/2004 6:19:21 AM
asp.net.presentation-controls 72751 articles. 3 followers. Follow

1 Replies
972 Views

Similar Articles

[PageSpeed] 10
Get it on Google Play
Get it on Apple App Store

If you simply want to show an image in a column - you need to use TemplateColumn. If, on the other hand, you want to show the image in your hyperlink column you need to modify the DataTextFormatString property of your hyperlink column

Cheers
Bug [MCSD]
0
Bug_Bugger
11/18/2004 2:08:18 PM
Reply:

Similar Artilces:

When is a column not a column?
I have several extremely similar datawindows that I have to maintain that go against the same table. Recently, I had to add a column to that table, and also add the column to ALL of these datawindows that go against this table. I added the column to the first datawindow, set up the edit control style, etc. I then did a copy/paste of the columns edit control to the remaining dw's (of course remembering to first add the column in SQL). Everything (update props, column specs, column props) seems to indicate that the pasted column is linked to the column I selected, HOWEVER, when I...

grid view-hide column after add new hyperlink column
I define a grid and bound a data with one column - "productName" after that I add hyperlinkfiled to the grid - now I can see 2 columns - the new colums dispaly first now I try to hide the original column "productname" but i have an error : out of range here is my code:GridView gv = new GridView(); HyperLinkField Hyperlink1 = new HyperLinkField(); gv.AutoGenerateColumns = false;  ;;<--  I enter this line - I hope it help - but is not help.  gv.DataSource = category.Products;   //add hyper link field to gridgv.DataKeyNames = new string[] { &q...

Is there a way to add extra control to header of a Grid column, but still keep the default column name? thanks
I am using Grid, and I add template field <asp:TemplateField HeaderText="name" SortExpression="something">if I want to have special header, I can use HeaderTemplate, but with HeaderTemplate added ,the headertext will not show, if there a way I can just add a control beside the headertext? since I don't want to handle the column sort. thanks I am sure there is a better way to do this, but in the past I have used the following method although I left out the commandname and arguments protected void GridView1_DataBound(object sender, EventArgs e) { string celltext = GridView1.H...

how to add column data into a new column
I have a gridview that i need to add an additional column and put the total count for each week... Can somone show me how I can do this ? (can this be done on the front end ? )  if not can you show me a C# example. What I need to add is Columns CB, Billing, Repair Call Morning Session, Repair Call Afternoon Session, Sales and Retention, Sales and service center, Tech Ops, Watched Recorded Session into a new column YTD.   <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"         BackC...

how to make datagrid column as a hyperlink column
we assign dataset to the datagrid and datagrid is filled with that data.  but I make one column as hyperlink and I want when I click on any item of that column then the new browser window open in the center of main window pls tell me how make a datagrid column as hyperlink and how to pass that column value to next window which open through javascriptBasim Hi:   You can use TemplateColumn.   Please try this: <TemplateColumn>  <ItemTemplate>   <a href="javascript:alert('hello')"><%#DataBinder.Eval(Container.DataItem,...

superreview granted: [Bug 271586] Implement CSS3 column-rule-* : [Attachment 167809] part 1: style system changes to add -moz-column-rule-width, -moz-column-rule-style, and -moz-column-rule-color pro
David Baron <dbaron@mozilla.org> has granted Robert O'Callahan (Novell) <roc@ocallahan.org>'s request for superreview: Bug 271586: Implement CSS3 column-rule-* https://bugzilla.mozilla.org/show_bug.cgi?id=271586 Attachment 167809: part 1: style system changes to add -moz-column-rule-width, -moz-column-rule-style, and -moz-column-rule-color properties, with -moz-column-rule shorthand https://bugzilla.mozilla.org/attachment.cgi?id=167809&action=edit ------- Additional Comments from David Baron <dbaron@mozilla.org> r+sr=dbaron given the changes in commen...

superreview requested: [Bug 271586] Implement CSS3 column-rule-* : [Attachment 167809] part 1: style system changes to add -moz-column-rule-width, -moz-column-rule-style, and -moz-column-rule-color p
Robert O'Callahan <roc@ocallahan.org> has asked David Baron <dbaron@mozilla.org> for superreview: Bug 271586: Implement CSS3 column-rule-* https://bugzilla.mozilla.org/show_bug.cgi?id=271586 Attachment 167809: part 1: style system changes to add -moz-column-rule-width, -moz-column-rule-style, and -moz-column-rule-color properties, with -moz-column-rule shorthand https://bugzilla.mozilla.org/attachment.cgi?id=167809&action=edit ...

How do I add a column of type GUID Replicate ID to a Access table using the Alter Table Add Column Statement
Hi,   I'm trying to create a GUID autogenerated column within my table using the Alter Table Add column Auery as shown below,   ALTER TABLE MainTable ADD COLUMN [My_Guid] AUTOINCREMENT(Replication ID) Any help would be greatly appreciated..  Thanks, Acces doesn't have a GUID data type. If you want to have GUID as Key field, you should use a Text Field, and you should fill it using code. If you want to have a autogenerated Primary Key, use [COUNTER], which will generate a Long value. Hi,   Access has a AutoNumber Replcate ID type which is exactly...

Can you have a hyperlink column and and edit column in one datagrid?
Hi All, Is it possible to have a datagrid that has a hyperlink column so the data related to that particular row is viewable on another page and also have a edit, cancel, update column to edit data in that grid. As i am unable to get my edit commands to work and i was wondering whether i cannot do this as i have a hyperlink column. Also does anyone have any suggestions Thanks  yes you can have as many hyperlink columns you want. infact edit,insert update delete are also hyperlink button in one columns with their respective command arguments and source values Thanks   &...

add control to template column
I'm trying to do what is explained in this thread, http://forums.asp.net/thread/315571.aspx, add a checkbox control to a templatecolumn, and then add the templatecolumn to a DataGrid. I dont' think I'm missing any references.  When I go to type in TemplateColumn.Controls.Add("Check box name"), intellisense doesn't give a control property?  Do I need to add a reference under the Project menu or something?  Thanks.  Code below:  TemplateColumn TC = new TemplateColumn(); CheckBox CB = new CheckBox(); TC.HeaderText = "Grant"; TC.Visible = true;   //...

Only one table column in n-columns presentation style
Hi all, I think it�s better to explain our problem with an example. Any idea to do this data (2 records): ID: 1 DATE: 19/01/2000 OBS: 11111111111 22222222222 333333 aaaaaaaa line444ae q qwe qweqee ID: 2 DATE: 19/01/2000 OBS: ad asdasda as fffffffffff hhhhhhh mmmmmmmmmPPPPPPPPPP ooooo on one DataObject (something) like: ************ ID: 1 DATE: 19/01/2000 OBS: 111111111111 aaaaaaaa 444ae 22222222222 q qwe qweqee 333333 ************ ID: 2 DATE: 19/01/2000 OBS: ad asdasda as PPPPPPPPPP ...

validation columns against column
Hi  Do anybody know some articles or codeexample of how to validate columns against a input Column. B can be > A and B can be < C. If you in row ID write 55 for Column_B, it must be reject.example:ID        column_A  Column_B   Column_C1              3               10             152         &...

Making hyperlink on one column in datagrid from values in other column
Dear friends,  I have columns in database: id, homepage (stores url of persons hompage), name. I want to display in datagrid in such a way that: Only name as hyperlink (hyperlink value to be retrieved from id value, so that direct link will not be available) will appear in datagrid. So, that when user will click on hyperlinked email, it should get redirect to homepage url i.e.<a href=redirect.aspx?id=1>John></a> Only john should appear in gridview and will be redirected to is homepage say www.xyz.com/john   Thanks If u mean, how to place the I...

Add a hyperlinked column to gridview
I am using an excel spreadsheet as a datasource for showing keyword search results from the spreadsheet in a gridview. The spreadsheet has 4 columns: MP Number, Revision Date, MFG, and Description. I am able to show all the 4 columns along with the search feature. I now need to add an additional column showing a pdf logo for each row in the gridview. On clicking the pdf logo, the user must show up a pdf document pertaining to that MP number. The excel spreadsheet is in the App_Data folder. The pdf documents are on a different server.  Here's my code: <ajax:UpdatePanel ID=&quo...

Web resources about - add column with hyperlink column - asp.net.presentation-controls

Hyperlink - Wikipedia, the free encyclopedia
A hyperlink points to a whole document or to a specific element within a document. Hypertext is text with hyperlinks. A software system for viewing ...

SA Supreme Court rules Dr Janice Duffy was defamed by Google through its hyperlinks, auto-complete and ...
A FORMER SA Health researcher has won a six-year legal battle against Google, proving she was defamed by the internet giant due to the way it ...

Banned hyperlinks could cost you $11,000 a day
The Australian communications regulator says it will fine people who hyperlink to sites on its blacklist, which continues to be controversially ...

ANALYSIS - Supreme Court hyperlink decision a victory for free speech
A hyperlink by itself should never be seen as 'publication' of other content, the Supreme Court said. But when it comes to libel the court did ...

Review: HyperLink is a great, inexpensive steel bracelet for the Apple Watch
Apple's own stainless steel link bracelet is too expensive for many of us to consider. HyperLink, however, is a less expensive alternative that ...

Apple's 'audio hyperlink' tech can control devices with inaudible sonic pulses
An Apple patent filing published by the U.S. Patent and Trademark Office on Thursday describes a method of encoding hyperlinks into an audio ...

Patent troll sending out invoices for image hyperlinks
A company named Vuestar thinks everyone who links images to pages on the Web …

How Effective Hyperlinks Can Help Your Blog
... link text explain exactly where the link is leading you or does it say something generic like click here ? When I saw Writing Effective Hyperlinks ...

Gmail's Shortcut for Inserting Hyperlinks
... doesn't mean Google shouldn't improve them. Many people complained that Gmail's rich text editor doesn't have a shortcut for inserting hyperlinks ...

Scientology loss keeps hyperlinks legal
The Church of Scientology loses a courtroom battle to compel a Dutch writer and her ISP to remove postings from a Web site, in a ruling that ...

Resources last updated: 12/6/2015 4:10:38 PM