Click here to Skip to main content
15,881,248 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Problem with Security Information Message Pop Up Box Pin
Brij22-Dec-10 0:34
mentorBrij22-Dec-10 0:34 
GeneralRe: Problem with Security Information Message Pop Up Box Pin
AndyASPVB23-Dec-10 0:01
AndyASPVB23-Dec-10 0:01 
Questionhow to put picture from dtatabase to pictureBox in asp.net ? Pin
Gali197821-Dec-10 9:38
Gali197821-Dec-10 9:38 
AnswerRe: how to put picture from dtatabase to pictureBox in asp.net ? Pin
Not Active21-Dec-10 9:56
mentorNot Active21-Dec-10 9:56 
AnswerRe: how to put picture from dtatabase to pictureBox in asp.net ? Pin
saman padidar22-Dec-10 0:51
saman padidar22-Dec-10 0:51 
GeneralRe: how to put picture from dtatabase to pictureBox in asp.net ? Pin
goldsoft22-Dec-10 3:19
goldsoft22-Dec-10 3:19 
GeneralRe: how to put picture from dtatabase to pictureBox in asp.net ? Pin
Not Active22-Dec-10 3:43
mentorNot Active22-Dec-10 3:43 
QuestionBulk updating values from GridView bound to a datatable [moved] Pin
6,921,364 and growing21-Dec-10 2:47
6,921,364 and growing21-Dec-10 2:47 
I feel it may require threaded discussion so I am moving the question here from Q&A.

Greetings everyone!

This may be a very simple question but I just can't get it working. Moreover Google doesn't seem to help me much (Or I still have a lot to improve on my searching skills. Smile | :) )

Let me explain the scenario:

This page is basically accessed by a user who has received some items and has to update this page accordingly.
I have a GridView bound to a DataTable. The GridView has a checkbox column, few databound columns and a TemplateColumn with a TextBox as ItemTemplate. The GridView has to be updated with two things -
a) By unchecking a checkbox, the user indicates that the particular item has not been received. So a flag indicating unreceived will be marked in the database.
b) The textbox in the template field will by default contain quantity sent for that particular item. The user can update it to actual quantity received.

After all edits are done, user clicks the save button and details (a) and (b) has to be updated to the database at a time.

What I have tried:
I save the initial GridView value in a ViewState. When the user clicks 'Save' I thought I will get the DataSource and compare the values and do a bulk update using a DataAdapter. But the DataSource is null (which is correct). I do not seem to be able to use things like DataTable.RowState for bulk update. How do I synchronize the GridView with the bound DataTable?

Please help me on how should I go about it.

Thanks!
AnswerRe: Bulk updating values from GridView bound to a datatable [moved] Pin
6,921,364 and growing23-Dec-10 1:33
6,921,364 and growing23-Dec-10 1:33 
QuestionExport DataGrid to Excel Problem with Code. Pin
Asif Rehman21-Dec-10 1:08
Asif Rehman21-Dec-10 1:08 
AnswerRe: Export DataGrid to Excel Problem with Code. Pin
thatraja23-Dec-10 7:26
professionalthatraja23-Dec-10 7:26 
AnswerRe: Export DataGrid to Excel Problem with Code. Pin
Srinivas_Kotra24-Dec-10 3:32
Srinivas_Kotra24-Dec-10 3:32 
QuestionDynamically Add Tabs in Tabcontainer Ajaxtoolkit3.0 Pin
idreesbadshah20-Dec-10 21:19
idreesbadshah20-Dec-10 21:19 
AnswerRe: Dynamically Add Tabs in Tabcontainer Ajaxtoolkit3.0 Pin
Tej Aj21-Dec-10 6:02
Tej Aj21-Dec-10 6:02 
Questionscan a photo by asp.net Pin
mehrnoosh20-Dec-10 20:49
mehrnoosh20-Dec-10 20:49 
AnswerRe: scan a photo by asp.net Pin
Pete O'Hanlon20-Dec-10 21:41
mvePete O'Hanlon20-Dec-10 21:41 
AnswerRe: scan a photo by asp.net Pin
Sajjan Kr Mishra21-Dec-10 4:30
Sajjan Kr Mishra21-Dec-10 4:30 
GeneralRe: scan a photo by asp.net Pin
mehrnoosh21-Dec-10 18:24
mehrnoosh21-Dec-10 18:24 
QuestionMessage Removed Pin
20-Dec-10 19:44
Ravi Mori20-Dec-10 19:44 
AnswerRe: IIS hosting Pin
RaviRanjanKr20-Dec-10 20:57
professionalRaviRanjanKr20-Dec-10 20:57 
GeneralMessage Removed Pin
20-Dec-10 22:55
Ravi Mori20-Dec-10 22:55 
GeneralRe: IIS hosting Pin
RaviRanjanKr21-Dec-10 1:31
professionalRaviRanjanKr21-Dec-10 1:31 
GeneralRe: IIS hosting Pin
thatraja21-Dec-10 2:40
professionalthatraja21-Dec-10 2:40 
GeneralRe: IIS hosting Pin
Ravi Mori21-Dec-10 3:09
Ravi Mori21-Dec-10 3:09 
QuestionNon-English Language in ASP.NET Pin
Mohamed Ibrahim Omar20-Dec-10 12:24
Mohamed Ibrahim Omar20-Dec-10 12:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.