Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Saving data from a gridview to the database

Posted on 2013-02-01
2
Medium Priority
?
684 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 36

Accepted Solution

by:
Miguel Oz earned 2000 total points
ID: 38845257
0
 

Author Closing Comment

by:sherbug1015
ID: 38846674
That helped a lot.  Thank you.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

688 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