Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
alpoor
Starting Member
29 Posts |
Posted - 2005-06-12 : 08:23:19
|
Follwoing is code for displaying database rows in a datagrid. I made one column as hyperlink cell, once user clicks on the cell it will take to other page. I am able to retrieve the clickable cell value by doing nacode={0}, but my problem here is how to retrieve other cells in the same row<asp:DataGrid runat="server" id="dggrid1" BackColor="#eeeeee" Width="85%" HorizontalAlign="Center" Font-Name="Verdana" CellPadding="4" Font-Size="10pt" AutoGenerateColumns="False"> <HeaderStyle BackColor="Black" ForeColor="White" Font-Bold="True" HorizontalAlign="Center" /> <AlternatingItemStyle BackColor="White" /> <Columns> <asp:BoundColumn DataField="owner" HeaderText="Dept" /> <asp:BoundColumn DataField="status" HeaderText="Status" /> <asp:BoundColumn DataField="actdate" HeaderText="Actual Impl Date" /> <asp:BoundColumn DataField="impdate" HeaderText="Req Impl Date" /> <asp:HyperLinkColumn DataNavigateUrlField="nacode" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center" HeaderText="NaCode" DataTextField="nacode" DataNavigateUrlFormatString="http://image.aspx?nacode={0}" /> <asp:BoundColumn DataField="spectype" HeaderText="SpecType"/> <asp:BoundColumn DataField="approval" HeaderText="Approval" /> <asp:BoundColumn DataField="description" HeaderText="Short Desc" /> <asp:BoundColumn DataField="promtype" HeaderText="Promo Type" /> </Columns></asp:datagrid> |
|
jhermiz
3564 Posts |
Posted - 2005-06-12 : 12:09:51
|
e.Item.FindControl("YourControlName").Text Keeping the web experience alive -- [url]http://www.web-impulse.com[/url]Imperfection living for perfection -- [url]http://jhermiz.blogspot.com/[/url] |
 |
|
|
|
|