Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 1.0
This is the forum to discuss the Wrox book Beginning ASP.NET 1.0 with C# by Chris Goode, John Kauffman, Christopher L. Miller, Neil Raybould, S. Srinivasa Sivakumar, Dave Sussman, Ollie Cornes, Rob Birdwell, Matt Butler, Gary Johnson, Ajoy Krishnamoorthy, Juan T. Llibre, Chris Ullman; ISBN: 9780764543708
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 1.0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 17th, 2004, 12:34 PM
Authorized User
 
Join Date: Jul 2004
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Default DataGrid Cell

I have the following datagrid that I am trying to get the UserID so I may have something for my where clasue in a Select statment.
------
    <table id="tbldatagrid" align="center" border="0">
                <tr>
                    <td>
                        <asp:datagrid runat="server" id="UserDataGrid" AutogenerateColumns="False" BorderColor="Black" Font-Size="11" Font-Name="Arial" BackColor="White" HeaderStyle-HorizontalAlign="Center" Headerstyle-Font-Bold="True" Headerstyle-Font-Size="12" Headerstyle-Font-Name="Arial" Headerstyle-BackColor="White" cellspacing="0" cellpadding="2" GridLines="Both" OnEditCommand="EditCommand">
                            <Columns>
                                <asp:BoundColumn DataField="UserID" HeaderText="User ID" ItemStyle-HorizontalAlign="Center" ReadOnly="false"></asp:BoundColumn>
                                <asp:BoundColumn DataField="Name" HeaderText="Name" ItemStyle-HorizontalAlign="Center" ReadOnly="False"></asp:BoundColumn>
                                <asp:BoundColumn DataField="Username" HeaderText="Username" ItemStyle-HorizontalAlign="Center" ReadOnly="False"></asp:BoundColumn>
                                <asp:BoundColumn DataField="Password" HeaderText="Password" ItemStyle-HorizontalAlign="Center" ReadOnly="False"></asp:BoundColumn>
                                <asp:EditCommandColumn ButtonType="LinkButton" editText="View Details" ItemStyle-HorizontalAlign="Center" HeaderText="Details"></asp:EditCommandColumn>
                            </Columns>
                        </asp:datagrid>
                    </td>
                </tr>
            </table>
--------------

Any ideas on how to this??

Thanks,
Mark






Similar Threads
Thread Thread Starter Forum Replies Last Post
Datagrid: cell backcolor kesar ASP.NET 2.0 Professional 1 January 12th, 2007 01:54 PM
Getting DataGrid Cell Data lifewarped General .NET 2 February 20th, 2005 07:00 PM
DataGrid cell events?? Help Kathryn ASP.NET 1.0 and 1.1 Basics 4 January 31st, 2005 10:12 AM
How do I get the CHANGED value in a datagrid cell? Ron Howerton VB.NET 2002/2003 Basics 2 December 23rd, 2004 10:51 AM
Read cell in the DataGrid? drasko ASP.NET 1.0 and 1.1 Professional 1 December 18th, 2003 10:43 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.