473,382 Members | 1,658 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,382 software developers and data experts.

ASP.NET 2.0 Gridview with column containing bot hyperlinked and non hyperlikned cells

Hi,

My gridview should have columns containing both hyperlinked and non hyperlinked cells in the same column.

Example - Say there are 4 rows and 4 columns in my grid, and the 3rd column should have both hyperlinked and non hyperlinked cells.

Can anyone help me how to do this.?
Jun 28 '07 #1
1 1042
Paulson
63
Hi,

My gridview should have columns containing both hyperlinked and non hyperlinked cells in the same column.

Example - Say there are 4 rows and 4 columns in my grid, and the 3rd column should have both hyperlinked and non hyperlinked cells.

Can anyone help me how to do this.?
HI
Would like to ask you something. The non Hyperlinked part does not have anything else to do than to display on screen right?
Look if you want the third column with hyperlinked and non hyperlinked data try whether this method helps

In the gridView the rquired column must be giiven like this


<asp:TemplateField HeaderText="Log Quote Status" Expression="Code">
<ItemTemplate>
<asp:Label runat="server" Text='<%# DataBinder.EvalContainer.DataItem, "Description") %>'></asp:Label>
&nbsp; &nbsp; &nbsp;
<asp:LinkButton ID="lnkViewButton" runat="server"
CommandArgument='<%# DataBinder.Eval(Container.DataItem, "LogQuoteStatusId") %>'
CommandName="View" OnClick="linkButton_Clicked"><%# DataBinder.Eval(Container.DataItem, "Code")%>
</asp:LinkButton>
</ItemTemplate>
<ItemStyle Width="45%" />
</asp:TemplateField>

Please reply after trying this, good luck

bye Paulson.
Jun 28 '07 #2

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

Similar topics

1
by: tfsmag | last post by:
Hello, I have a function that returns a dynamically created gridview. This works fine, however it does not seem to be able to maintain state when adding sorting or paging to the gridview. Does...
3
by: =?Utf-8?B?Um9iZXJ0IENoYXBtYW4=?= | last post by:
Hi, I have a GridView with a fixed number of columns being returned from a SQL query and each having a simple template: <asp:TemplateField HeaderText="Allocations"> <edititemtemplate>...
5
by: bbawa1 | last post by:
I have a GetData methd which is returning a table using
0
by: nospam | last post by:
Hello, I need a column in a GridView to trigger a javascript function ( to play an MP3 file). I am catching the RowCreated event from the GridView. I then add my javascript code like this: ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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
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.