Solved

Saving data from a gridview to the database

Posted on 2013-02-01
2
613 Views
Last Modified: 2013-02-02
I have a editable gridview.  The entire gridview must be editable at one time, so I am using the labels for the read only view and text boxes for the writable view.

<asp:TemplateField HeaderText="Priority 1">

 <ItemTemplate>

<asp:Label ID="lblPriority1" Visible='<%# Not (IsInEditMode) %>' runat="server" Text='<%# Eval("Priority1") %>' />

<asp:TextBox ID="txtPriority1" Visible='<%# IsInEditMode %>' runat="server" width="20px" Text='<%# Bind("Priority1") %>' />
</ItemTemplate>
</asp:TemplateField>

My need is to save the entire gridview with a single click with some kind of loop.  There are 25 rows and 12 columns.    I am not using a SQLDataSource, but am filling the grid by making a call to a stored proc in the Database layer.  

I have attached a subset of what the grid looks like.  


Does anyone have any code that could assist me.

Thanks.
cadencegrid.xlsx
0
Comment
Question by:sherbug1015
2 Comments
 
LVL 35

Accepted Solution

by:
Miguel Oz earned 500 total points
Comment Utility
0
 

Author Closing Comment

by:sherbug1015
Comment Utility
That helped a lot.  Thank you.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now