Just an idea for a work-around...
Create a table with two rows... as many columns as you need for input
fields...
Put a button (link button or other) to use as a submit some where within
your first row. Then textboxes or dropdownlists for each field you need as
an input field.
On the second row... merge all cells together and insert your gridview.
Use your submit button to insert your record (in your code behind) and to
refresh/rebind your gridview.
You can format your first row to appear as the skin/css style you are using
on your grid so they will appear to be connected.
Mark
--------------------------------------------------
From: "crocboy25" <[email protected]>
Sent: Thursday, March 17, 2011 9:51 AM
To: "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web
Services,.NET Remoting" <[email protected]>
Subject: [DotNetDevelopment] Creating an Insert row at the top of the
gridview
Group,
I am trying to create an "insert" row at the top of the gridview and
have not had much luck. Most examples I have seen have been pretty
complex. Does anyone have a straight forward way to accomplish this.
Right now, I have added a "null" row at the top of my data that comes
back and have been trying to hijack this line to add an Add Button but
cannot get this to work right. Does anyone have an example I can view
to help guide me?
Thank you
Lee
--
You received this message because you are subscribed to the Google
Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
Web Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
or visit the group website at http://megasolutions.net
--
You received this message because you are subscribed to the Google
Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
Web Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
or visit the group website at http://megasolutions.net