You can use the GridView which is the most recent version of the DataGrid control in ASP.NET.
You can make use of the GridView events RowCommand, RowDataBound, RowDeleting, RowEditing, RowUpdating which you can set in the GridView markup. See the below code markup.
<asp:GridView ID="gv_Lookup" runat="server" DataKeyNames="LookupCD"
AutoGenerateColumns="True" OnRowDataBound="gv_Lookup_RowDataBound" OnRowEditing="gv_Lookup_RowEditing" OnRowUpdating="gv_Lookup_RowUpdating"
OnRowCommand="gv_Lookup_RowCommand" OnRowDeleting="gv_Lookup_RowDeleting" ShowFooter="True"
>
For more detailed articles on ASP.NET and other technologies visit
www.coderewind.com Last edited by peter_budo; Dec 16th, 2008 at 4:25 pm. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
Reputation Points: 25
Solved Threads: 18
Practically a Master Poster
Offline 645 posts
since Dec 2006