Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > ASP.Net Datagrid Not Working Properly

Reply
Thread Tools

ASP.Net Datagrid Not Working Properly

 
 
mh
Guest
Posts: n/a
 
      06-19-2006
I have a datagrid on an aspx page that correctly shows my data using the
following code:

<form id="Form1" method="post" runat="server">
<asp:datagrid id="DataGrid1" style="Z-INDEX: 101; LEFT: 96px; POSITION:
absolute; TOP: 160px"
runat="server" AutoGenerateColumns="False"
OnEditCommand="DataGrid1_EditCommand">
<Columns>
<asp:BoundColumn DataField="Equipment_Serial"
HeaderText="Equipment_Serial"></asp:BoundColumn>

<asp:BoundColumn DataField="Equipment_Location"
HeaderText="Equipment_Location"></asp:BoundColumn>

<asp:BoundColumn DataField="Equipment_Tracking_Number"
HeaderText="Equipment_Tracking_Number"></asp:BoundColumn>

<asp:EditCommandColumn ButtonType="LinkButton" UpdateText="Update"
CancelText="Cancel" EditText="Edit"></asp:EditCommandColumn>
</Columns>
</asp:datagrid></form>

However, if I click the "Edit" link the grid, it just returns a blank
page rather than a grid capable of inline editing.

My EditCommand Event on my cs page looks like thism if that makes a
difference:
DataGrid1.EditItemIndex = e.Item.ItemIndex;
DataGrid1.DataBind();

Anyone have any ideas?

Thanks,

Matt
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IPostBackDataHandler not working properly with DataGrid buzlite@sympatico.ca ASP .Net Building Controls 8 08-19-2006 09:52 AM
IPostBackDataHandler not working properly with DataGrid buzlite@sympatico.ca ASP .Net Datagrid Control 0 08-11-2006 01:27 AM
asp:RadioButton in a asp:DataGrid not working properly RSB ASP .Net 0 09-15-2004 06:45 PM
ICS not working properly AuthorizedUser Wireless Networking 2 08-23-2004 04:46 AM
More American Graffiti: Properly Framed, Properly Scored? Scot Gardner DVD Video 0 09-02-2003 02:28 AM



Advertisments