473,396 Members | 2,055 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,396 software developers and data experts.

VB SCRIPT - How to Put Hypherlink in Gridview Field

Hi Guys,
Can You Help Me PLease...

I have a 2 gridview the gridview1 and gridview2:
gridview1-contains Itemcode field(Primary key)
gridview2-contains have Itemcode field(ForeignKey)

gridview1-contains the summary of Items
gridview2-contains the details of items

I want to put Hypherlink in the Itemcode Field(Gridview1) for the selection of row of an specific item select,so that when I click one of the item in gridview1, the details of that specific item will display its details in gridview2.
Feb 23 '08 #1
6 1487
Hi Guys,
Can You Help Me PLease...

I have a 2 gridview the gridview1 and gridview2:
gridview1-contains Itemcode field(Primary key)
gridview2-contains have Itemcode field(ForeignKey)

gridview1-contains the summary of Items
gridview2-contains the details of items

I want to put Hypherlink in the Itemcode Field(Gridview1) for the selection of row of an specific item select,so that when I click one of the item in gridview1, the details of that specific item will display its details in gridview2.
I'm not sure how you're binding your Gridviews behind the scenes, or what your architechture is. Could you post some source code?

Here's one way in which this could be done (in C#), assuming that your UI relies on the underlying business objects to deliver data ,

aspx

<!-- item gridview -->
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" OnSelectedIndexChanged="GridView1_SelectedIndexCha nged" DataKeyNames="PrimaryKeyName">
<Columns>
<!-- this is the select hyperlink for each row -->
<asp:CommandField ShowSelectButton="True">
</asp:CommandField>

</asp:GridView>

<!-- Details Gridview -->
<asp:GridView ID="GridView2" runat="server">
</asp:GridView>




aspx.cs

protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
{
//assuming that itemcode is a unique int
int itemCode = Convert.ToInt32(GridView1.SelectedDataKey.Value.To String());

//assuming that the Details of every item might be contained in a different
// business object which constructs itself based on the item code;
// you might not be following an n-tiered approach, in which case
// you could commands to get the data directly
ItemDetails details = new ItemDetails(itemCode);

GridView2.DataSource = details;
GridView2.DataBind();
}
Feb 25 '08 #2
I'm not sure how you're binding your Gridviews behind the scenes, or what your architechture is. Could you post some source code?

Here's one way in which this could be done (in C#), assuming that your UI relies on the underlying business objects to deliver data ,

aspx

<!-- item gridview -->
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" OnSelectedIndexChanged="GridView1_SelectedIndexCha nged" DataKeyNames="PrimaryKeyName">
<Columns>
<!-- this is the select hyperlink for each row -->
<asp:CommandField ShowSelectButton="True">
</asp:CommandField>

</asp:GridView>

<!-- Details Gridview -->
<asp:GridView ID="GridView2" runat="server">
</asp:GridView>




aspx.cs

protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
{
//assuming that itemcode is a unique int
int itemCode = Convert.ToInt32(GridView1.SelectedDataKey.Value.To String());

//assuming that the Details of every item might be contained in a different
// business object which constructs itself based on the item code;
// you might not be following an n-tiered approach, in which case
// you could commands to get the data directly
ItemDetails details = new ItemDetails(itemCode);

GridView2.DataSource = details;
GridView2.DataBind();
}



Can You write it in vb script?please...Thank You

I'm Using ASP.net and MS SQL2005 and I'm using VB SCRIPT

Here is my code:

Code: ( vbnet )
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Dim con As New SqlConnection

con.ConnectionString = "Integrated Security=True;data source=ph-erwinm1;" & "persist security info=false;Initial Catalog=ITP"

Const strSQL As String = "SELECT intItemCodePK,strsubmitter,datRequested,datRequire d FROM tblITPtransaction"
Dim myCommand As New SqlCommand(strSQL, con)
con.Open()
GridItemcodeSumm.DataSource = myCommand.ExecuteReader(CommandBehavior.CloseConne ction)
GridItemcodeSumm.DataBind()

end sub



----------HTML-------------

<asp:GridView id="GridItemcodeSumm" runat="server" Width="606px" Height="18px" ForeColor="#333333" AllowSorting="True" AllowPaging="false" CellPadding="4" AutoGenerateColumns="False" Font-Size="Smaller" Font-Overline="False" Font-Names="Arial" EnableViewState="False" Font-Bold="False" style="left: 2px; position: relative; top: -33px">
<FooterStyle BackColor="#507CD1" ForeColor="White" Font-Bold="True"></FooterStyle>
<Columns>
<asp:BoundField DataField="intItemCodePK" SortExpression="intItemCodePK" HeaderText="Item Code"></asp:BoundField>
<asp:BoundField DataField="strsubmitter" SortExpression="strsubmitter" HeaderText="Submitter"></asp:BoundField>
<asp:BoundField DataField="datRequested" SortExpression="datRequested" HeaderText="Date Requested"></asp:BoundField>
<asp:BoundField DataField="datRequired" SortExpression="datRequired" HeaderText="Date Required"></asp:BoundField>

</Columns>

<RowStyle BackColor="#EFF3FB"></RowStyle>

<EditRowStyle BackColor="#2461BF"></EditRowStyle>

<SelectedRowStyle BackColor="#D1DDF1" ForeColor="#333333" Font-Bold="True"></SelectedRowStyle>

<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center"></PagerStyle>

<HeaderStyle BackColor="#507CD1" ForeColor="White" Font-Bold="True"></HeaderStyle>

<AlternatingRowStyle BackColor="White"></AlternatingRowStyle>
</asp:GridView>
I'm Using ASP.net and MS SQL2005 and I'm using VB SCRIPT

Here is my code:

Code: ( vbnet )
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Dim con As New SqlConnection

con.ConnectionString = "Integrated Security=True;data source=ph-erwinm1;" & "persist security info=false;Initial Catalog=ITP"

Const strSQL As String = "SELECT intItemCodePK,strsubmitter,datRequested,datRequire d FROM tblITPtransaction"
Dim myCommand As New SqlCommand(strSQL, con)
con.Open()
GridITPSumm.DataSource = myCommand.ExecuteReader(CommandBehavior.CloseConne ction)
GridITPSumm.DataBind()

end sub



----------HTML-------------

<asp:GridView id="GridItemcodeSumm" runat="server" Width="606px" Height="18px" ForeColor="#333333" AllowSorting="True" AllowPaging="false" CellPadding="4" AutoGenerateColumns="False" Font-Size="Smaller" Font-Overline="False" Font-Names="Arial" EnableViewState="False" Font-Bold="False" style="left: 2px; position: relative; top: -33px">
<FooterStyle BackColor="#507CD1" ForeColor="White" Font-Bold="True"></FooterStyle>
<Columns>
<asp:BoundField DataField="intItemCodePK" SortExpression="intItemCodePK" HeaderText="Item Code"></asp:BoundField>
<asp:BoundField DataField="strsubmitter" SortExpression="strsubmitter" HeaderText="Submitter"></asp:BoundField>
<asp:BoundField DataField="datRequested" SortExpression="datRequested" HeaderText="Date Requested"></asp:BoundField>
<asp:BoundField DataField="datRequired" SortExpression="datRequired" HeaderText="Date Required"></asp:BoundField>

</Columns>

<RowStyle BackColor="#EFF3FB"></RowStyle>

<EditRowStyle BackColor="#2461BF"></EditRowStyle>

<SelectedRowStyle BackColor="#D1DDF1" ForeColor="#333333" Font-Bold="True"></SelectedRowStyle>

<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center"></PagerStyle>

<HeaderStyle BackColor="#507CD1" ForeColor="White" Font-Bold="True"></HeaderStyle>

<AlternatingRowStyle BackColor="White"></AlternatingRowStyle>
</asp:GridView>
Feb 25 '08 #3
Can You write it in vb script?please...Thank You

I'm Using ASP.net and MS SQL2005 and I'm using VB SCRIPT

Here is my code:

Code: ( vbnet )
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Dim con As New SqlConnection

con.ConnectionString = "Integrated Security=True;data source=ph-erwinm1;" & "persist security info=false;Initial Catalog=ITP"

Const strSQL As String = "SELECT intItemCodePK,strsubmitter,datRequested,datRequire d FROM tblITPtransaction"
Dim myCommand As New SqlCommand(strSQL, con)
con.Open()
GridItemcodeSumm.DataSource = myCommand.ExecuteReader(CommandBehavior.CloseConne ction)
GridItemcodeSumm.DataBind()

end sub



----------HTML-------------

<asp:GridView id="GridItemcodeSumm" runat="server" Width="606px" Height="18px" ForeColor="#333333" AllowSorting="True" AllowPaging="false" CellPadding="4" AutoGenerateColumns="False" Font-Size="Smaller" Font-Overline="False" Font-Names="Arial" EnableViewState="False" Font-Bold="False" style="left: 2px; position: relative; top: -33px">
<FooterStyle BackColor="#507CD1" ForeColor="White" Font-Bold="True"></FooterStyle>
<Columns>
<asp:BoundField DataField="intItemCodePK" SortExpression="intItemCodePK" HeaderText="Item Code"></asp:BoundField>
<asp:BoundField DataField="strsubmitter" SortExpression="strsubmitter" HeaderText="Submitter"></asp:BoundField>
<asp:BoundField DataField="datRequested" SortExpression="datRequested" HeaderText="Date Requested"></asp:BoundField>
<asp:BoundField DataField="datRequired" SortExpression="datRequired" HeaderText="Date Required"></asp:BoundField>

</Columns>

<RowStyle BackColor="#EFF3FB"></RowStyle>

<EditRowStyle BackColor="#2461BF"></EditRowStyle>

<SelectedRowStyle BackColor="#D1DDF1" ForeColor="#333333" Font-Bold="True"></SelectedRowStyle>

<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center"></PagerStyle>

<HeaderStyle BackColor="#507CD1" ForeColor="White" Font-Bold="True"></HeaderStyle>

<AlternatingRowStyle BackColor="White"></AlternatingRowStyle>
</asp:GridView>
I'm Using ASP.net and MS SQL2005 and I'm using VB SCRIPT

Here is my code:

Code: ( vbnet )
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Dim con As New SqlConnection

con.ConnectionString = "Integrated Security=True;data source=ph-erwinm1;" & "persist security info=false;Initial Catalog=ITP"

Const strSQL As String = "SELECT intItemCodePK,strsubmitter,datRequested,datRequire d FROM tblITPtransaction"
Dim myCommand As New SqlCommand(strSQL, con)
con.Open()
GridITPSumm.DataSource = myCommand.ExecuteReader(CommandBehavior.CloseConne ction)
GridITPSumm.DataBind()

end sub



----------HTML-------------

<asp:GridView id="GridItemcodeSumm" runat="server" Width="606px" Height="18px" ForeColor="#333333" AllowSorting="True" AllowPaging="false" CellPadding="4" AutoGenerateColumns="False" Font-Size="Smaller" Font-Overline="False" Font-Names="Arial" EnableViewState="False" Font-Bold="False" style="left: 2px; position: relative; top: -33px">
<FooterStyle BackColor="#507CD1" ForeColor="White" Font-Bold="True"></FooterStyle>
<Columns>
<asp:BoundField DataField="intItemCodePK" SortExpression="intItemCodePK" HeaderText="Item Code"></asp:BoundField>
<asp:BoundField DataField="strsubmitter" SortExpression="strsubmitter" HeaderText="Submitter"></asp:BoundField>
<asp:BoundField DataField="datRequested" SortExpression="datRequested" HeaderText="Date Requested"></asp:BoundField>
<asp:BoundField DataField="datRequired" SortExpression="datRequired" HeaderText="Date Required"></asp:BoundField>

</Columns>

<RowStyle BackColor="#EFF3FB"></RowStyle>

<EditRowStyle BackColor="#2461BF"></EditRowStyle>

<SelectedRowStyle BackColor="#D1DDF1" ForeColor="#333333" Font-Bold="True"></SelectedRowStyle>

<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center"></PagerStyle>

<HeaderStyle BackColor="#507CD1" ForeColor="White" Font-Bold="True"></HeaderStyle>

<AlternatingRowStyle BackColor="White"></AlternatingRowStyle>
</asp:GridView>

That is for GridItemCodeSummary...How Can I write the code for GridItemcodeDetails...Thank You
Feb 25 '08 #4
I've added the additional code you might need to put in... Please see the code in bold below,

Code: ( vbnet )
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Dim con As New SqlConnection

con.ConnectionString = "Integrated Security=True;data source=ph-erwinm1;" & "persist security info=false;Initial Catalog=ITP"

Const strSQL As String = "SELECT intItemCodePK,strsubmitter,datRequested,datRequire d FROM tblITPtransaction"
Dim myCommand As New SqlCommand(strSQL, con)
con.Open()
GridITPSumm.DataSource = myCommand.ExecuteReader(CommandBehavior.CloseConne ction)
GridITPSumm.DataBind()



end sub

Sub GridItemcodeSumm_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs)

Dim itemCode as String = GridItemcodeSumm.SelectedDataKey.Value.ToString()

Dim con As New SqlConnection

con.ConnectionString = "Integrated Security=True;data source=ph-erwinm1;" & "persist security info=false;Initial Catalog=ITP"

'this SQL query depends on how your details table looks like. This is just an example
Const strSQL As String = "SELECT * FROM tblDetails WHERE ItemCode = " & itemCode
Dim myCommand As New SqlCommand(strSQL, con)
con.Open()
GridItemcodeDet.DataSource = myCommand.ExecuteReader
GridItemcodeDet.DataBind()

End Sub




----------HTML-------------

<asp:GridView id="GridItemcodeSumm" runat="server" Width="606px" Height="18px" ForeColor="#333333" AllowSorting="True" AllowPaging="false" CellPadding="4" AutoGenerateColumns="False" Font-Size="Smaller" Font-Overline="False" Font-Names="Arial" EnableViewState="False" Font-Bold="False" style="left: 2px; position: relative; top: -33px" DataKeyNames="intItemCodePK" OnSelectedIndexChanged="GridItemcodeSumm_SelectedI ndexChanged">
<FooterStyle BackColor="#507CD1" ForeColor="White" Font-Bold="True"></FooterStyle>
<Columns>
<asp:CommandField ShowSelectButton="True">
</asp:CommandField>

<asp:BoundField DataField="intItemCodePK" SortExpression="intItemCodePK" HeaderText="Item Code"></asp:BoundField>
<asp:BoundField DataField="strsubmitter" SortExpression="strsubmitter" HeaderText="Submitter"></asp:BoundField>
<asp:BoundField DataField="datRequested" SortExpression="datRequested" HeaderText="Date Requested"></asp:BoundField>
<asp:BoundField DataField="datRequired" SortExpression="datRequired" HeaderText="Date Required"></asp:BoundField>

</Columns>

<RowStyle BackColor="#EFF3FB"></RowStyle>

<EditRowStyle BackColor="#2461BF"></EditRowStyle>

<SelectedRowStyle BackColor="#D1DDF1" ForeColor="#333333" Font-Bold="True"></SelectedRowStyle>

<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center"></PagerStyle>

<HeaderStyle BackColor="#507CD1" ForeColor="White" Font-Bold="True"></HeaderStyle>

<AlternatingRowStyle BackColor="White"></AlternatingRowStyle>
</asp:GridView>

<!-- Item Details Gridview -->
<asp:GridView ID="GridItemcodeDet" runat="server">
</asp:GridView>
Feb 26 '08 #5
I've added the additional code you might need to put in... Please see the code in bold below,

Code: ( vbnet )
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Dim con As New SqlConnection

con.ConnectionString = "Integrated Security=True;data source=ph-erwinm1;" & "persist security info=false;Initial Catalog=ITP"

Const strSQL As String = "SELECT intItemCodePK,strsubmitter,datRequested,datRequire d FROM tblITPtransaction"
Dim myCommand As New SqlCommand(strSQL, con)
con.Open()
GridITPSumm.DataSource = myCommand.ExecuteReader(CommandBehavior.CloseConne ction)
GridITPSumm.DataBind()



end sub

Sub GridItemcodeSumm_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs)

Dim itemCode as String = GridItemcodeSumm.SelectedDataKey.Value.ToString()

Dim con As New SqlConnection

con.ConnectionString = "Integrated Security=True;data source=ph-erwinm1;" & "persist security info=false;Initial Catalog=ITP"

'this SQL query depends on how your details table looks like. This is just an example
Const strSQL As String = "SELECT * FROM tblDetails WHERE ItemCode = " & itemCode
Dim myCommand As New SqlCommand(strSQL, con)
con.Open()
GridItemcodeDet.DataSource = myCommand.ExecuteReader
GridItemcodeDet.DataBind()

End Sub




----------HTML-------------

<asp:GridView id="GridItemcodeSumm" runat="server" Width="606px" Height="18px" ForeColor="#333333" AllowSorting="True" AllowPaging="false" CellPadding="4" AutoGenerateColumns="False" Font-Size="Smaller" Font-Overline="False" Font-Names="Arial" EnableViewState="False" Font-Bold="False" style="left: 2px; position: relative; top: -33px" DataKeyNames="intItemCodePK" OnSelectedIndexChanged="GridItemcodeSumm_SelectedI ndexChanged">
<FooterStyle BackColor="#507CD1" ForeColor="White" Font-Bold="True"></FooterStyle>
<Columns>
<asp:CommandField ShowSelectButton="True">
</asp:CommandField>

<asp:BoundField DataField="intItemCodePK" SortExpression="intItemCodePK" HeaderText="Item Code"></asp:BoundField>
<asp:BoundField DataField="strsubmitter" SortExpression="strsubmitter" HeaderText="Submitter"></asp:BoundField>
<asp:BoundField DataField="datRequested" SortExpression="datRequested" HeaderText="Date Requested"></asp:BoundField>
<asp:BoundField DataField="datRequired" SortExpression="datRequired" HeaderText="Date Required"></asp:BoundField>

</Columns>

<RowStyle BackColor="#EFF3FB"></RowStyle>

<EditRowStyle BackColor="#2461BF"></EditRowStyle>

<SelectedRowStyle BackColor="#D1DDF1" ForeColor="#333333" Font-Bold="True"></SelectedRowStyle>

<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center"></PagerStyle>

<HeaderStyle BackColor="#507CD1" ForeColor="White" Font-Bold="True"></HeaderStyle>

<AlternatingRowStyle BackColor="White"></AlternatingRowStyle>
</asp:GridView>

<!-- Item Details Gridview -->
<asp:GridView ID="GridItemcodeDet" runat="server">
</asp:GridView>
hi numena79 ,

Thank You for your support but I got an error when I write your code...
Can you help me please in debugging your code....
The errror is : "Constant Expression is Required"

The error is point out in vb script part of the code:
Const strSQL As String = "SELECT * FROM tblDetails WHERE ItemCode = " & itemCode


Thank you
Feb 29 '08 #6
Passing the selected datakeyname is ok but the gridviewdetails was not displaying...
what should I do?
Here is the code:
-----------VB Code:-----------------------
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)

Dim con As New SqlConnection


con.ConnectionString = "Integrated Security=True;data source=ph-erwinm1;" & "persist security info=false;Initial Catalog=ITP"

Const strSQL As String = "SELECT intITPCodePK,strsubmitter,datRequested,datRequired FROM tblITPtransaction"
Dim myCommand As New SqlCommand(strSQL, con)

con.Open()
GVITPSumm.DataSource = myCommand.ExecuteReader(CommandBehavior.CloseConne ction)
GVITPSumm.DataBind()
End Sub


Sub GVITPSumm_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs)
Dim con As New SqlConnection

con.ConnectionString = "Integrated Security=True;data source=ph-erwinm1;" & "persist security info=false;Initial Catalog=ITP"

Dim ITPCode As String
Dim strSQL As String
ITPCode = GVITPSumm.SelectedDataKey.Value.ToString()

strSQL = "SELECT intITPCodeFK, intItemCodePK, strItemType, intQuantity FROM tblItemList WHERE intITPCodeFK = '" & Trim$(ITPCode) & "'"

Dim myCommand As New SqlCommand(strSQL, con)
con.Open()
GVITPDetails.DataSource = myCommand.ExecuteReader(CommandBehavior.CloseConne ction)
GVITPDetails.DataBind()

End Sub




---------HTML Code -------------------

<asp:GridView style="LEFT: 2px; POSITION: relative; TOP: -33px" id="GVITPSumm"
runat="server" Width="606px" Height="18px" OnSelectedIndexChanged="GVITPSumm_SelectedIndexCha nged"
DataKeyNames="intITPCodePK" Font-Bold="False" EnableViewState="False" Font-Names="Arial"
Font-Overline="False" Font-Size="Smaller" AutoGenerateColumns="False" CellPadding="4"
AllowPaging="false" AllowSorting="True" ForeColor="#333333">
<FooterStyle BackColor="#507CD1" ForeColor="White" Font-Bold="True"></FooterStyle>

<Columns>
<asp:CommandField ShowSelectButton="True">
</asp:CommandField>
<asp:BoundField DataField="intITPCodePK" SortExpression="intITPCodePK" HeaderText="ITP Code"></asp:BoundField>
<asp:BoundField DataField="strsubmitter" SortExpression="strsubmitter" HeaderText="Submitter"></asp:BoundField>
<asp:BoundField DataField="datRequested" SortExpression="datRequested" HeaderText="Date Requested"></asp:BoundField>
<asp:BoundField DataField="datRequired" SortExpression="datRequired" HeaderText="Date Required"></asp:BoundField>
</Columns>

<RowStyle BackColor="#EFF3FB"></RowStyle>
<EditRowStyle BackColor="#2461BF"></EditRowStyle>
<SelectedRowStyle BackColor="#D1DDF1" ForeColor="#333333" Font-Bold="True"></SelectedRowStyle>
<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center"></PagerStyle>
<HeaderStyle BackColor="#507CD1" ForeColor="White" Font-Bold="True"></HeaderStyle>
<AlternatingRowStyle BackColor="White"></AlternatingRowStyle>
</asp:GridView>




<asp:GridView id="GVITPDetails" runat="server" AutoGenerateColumns="False" DataKeyNames="intITPCodeFK">
<Columns>
<asp:BoundField DataField="intITPCodeFK" SortExpression="intITPCodeFK" HeaderText="ITP Code"></asp:BoundField>
<asp:BoundField DataField="intItemCodePK" SortExpression="intItemCodePK" HeaderText="Item Code"></asp:BoundField>
<asp:BoundField DataField="strItemType" SortExpression="strItemType" HeaderText="Item Type"></asp:BoundField>
<asp:BoundField DataField="intQuantity" SortExpression="intQuantity" HeaderText="Quantity"></asp:BoundField>
</Columns>

<RowStyle BackColor="#EFF3FB"></RowStyle>
<EditRowStyle BackColor="#2461BF"></EditRowStyle>
<SelectedRowStyle BackColor="#D1DDF1" ForeColor="#333333" Font-Bold="True"></SelectedRowStyle>
<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center"></PagerStyle>
<HeaderStyle BackColor="#507CD1" ForeColor="White" Font-Bold="True"></HeaderStyle>
<AlternatingRowStyle BackColor="White"></AlternatingRowStyle>
</asp:GridView>



Thank You in Advance
Feb 29 '08 #7

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

Similar topics

3
by: | last post by:
Hello, I am trying to get add a product to a cart from a gridview control when a button in the gridview is clicked. I have a book on how to do this in asp.net 2.0 but it is done by specifying...
4
by: Nalaka | last post by:
Hi, I have two questions about gridViews. 1. How can I intercept the row/column values at loading to change values? 2. After I update a row (using default update functionality), how can I...
3
by: NateDawg | last post by:
I'm reposting this. I'm kinda in a bind untill i get this figured out, so if anyone has some input it would sure help me out. Ok, I’ve noticed a few gridview problems floating around the forum....
0
by: hammad.awan_nospam | last post by:
Hello, I am using ASP.NET 2.0. What I have done is nested a gridview inside another column of a gridview using a template data field column declaritively in my web form. Inside this child...
4
by: Jim Katz | last post by:
I have an application that updates a strongly typed data set at run time. I'd like to dynamically create a table that connects to a run time data table. For displaying the data, this works well. ...
2
by: Chris Davoli | last post by:
How do you enable a check box in the GridView. I selected Checkbox Field in the Columns of the GridView, and the check box shows up in the Grid view, but it is disabled. How do I enable it so I can...
4
by: Chris Davoli | last post by:
I've got two questions on how to do things in the new GridView. I'm used to the DataGrid in ASP 1.1, so I need the equavalent in ASP 2.0 Gridview. 1.) What is the equavalent for Item Command...
0
by: jaredciagar | last post by:
Hi Guys, Can You Help Me PLease, I'm Currently facing Problems in my system... I need some help... I'm using VB script,ASP.net,MS SQL Server2005 I want to select a specific data in...
0
by: jaredciagar | last post by:
Hello Guys, Can You Help ME Please.... I'm Using VB scipt,Asp.net and MS SQL 2005 I have Temporary Data in my gridview and I want it to save in MS SQL DB... For Example: gridview...
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
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.