PC Review


Reply
Thread Tools Rate Thread

ASP.Net Datagrid Not Working Properly

 
 
mh
Guest
Posts: n/a
 
      19th Jun 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
Rate This Thread
Rate This Thread:

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
Datagrid not working properly with storedprocedure Amol Microsoft Dot NET Framework Forms 1 27th Jul 2006 12:47 PM
Datagrid not working properly with storedprocedure Amol Microsoft Dot NET 0 25th Jul 2006 01:04 PM
Hello datagrid mot working properly with storedprocedures Amol Microsoft ADO .NET 0 25th Jul 2006 12:43 PM
CTRL-F (Find) quit working after 6-months of working properly =?Utf-8?B?YmNyZWVu?= Microsoft Access Form Coding 0 31st May 2006 08:55 PM
asp:RadioButton in a asp:DataGrid not working properly RSB Microsoft ASP .NET 0 15th Sep 2004 07:45 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:30 AM.