Click here to Skip to main content
15,892,059 members
Home / Discussions / C#
   

C#

 
GeneralRe: Update in C# using SQL Server Database. Pin
Norris Chappell12-May-15 20:02
Norris Chappell12-May-15 20:02 
GeneralRe: Update in C# using SQL Server Database. Pin
Pete O'Hanlon12-May-15 21:00
mvePete O'Hanlon12-May-15 21:00 
GeneralRe: Update in C# using SQL Server Database. Pin
Norris Chappell12-May-15 21:55
Norris Chappell12-May-15 21:55 
GeneralRe: Update in C# using SQL Server Database. Pin
Pete O'Hanlon12-May-15 22:17
mvePete O'Hanlon12-May-15 22:17 
GeneralRe: Update in C# using SQL Server Database. Pin
Norris Chappell13-May-15 3:48
Norris Chappell13-May-15 3:48 
GeneralRe: Update in C# using SQL Server Database. Pin
Pete O'Hanlon13-May-15 4:11
mvePete O'Hanlon13-May-15 4:11 
GeneralRe: Update in C# using SQL Server Database. Pin
Norris Chappell13-May-15 5:17
Norris Chappell13-May-15 5:17 
GeneralRe: Update in C# using SQL Server Database. Pin
Pete O'Hanlon13-May-15 5:57
mvePete O'Hanlon13-May-15 5:57 
It seems you have two separate issues that you're trying to fix here. The first is how to save the data from your GridView and the second one is how to display it/edit it. Is that correct?

Let's solve the first one - by assuming that you have somehow managed to display and edit the data back into the GridView. If we assume that, then you use the approach I outlined to perform your save. Don't try to save directly off the TextBoxes as that only applies to saving a single row. So, follow the code I outlined using the value in cell 0 to get your Id and save off that.
GeneralRe: Update in C# using SQL Server Database. Pin
Norris Chappell13-May-15 6:43
Norris Chappell13-May-15 6:43 
GeneralRe: Update in C# using SQL Server Database. Pin
Pete O'Hanlon13-May-15 7:15
mvePete O'Hanlon13-May-15 7:15 
GeneralRe: Update in C# using SQL Server Database. Pin
Norris Chappell13-May-15 8:28
Norris Chappell13-May-15 8:28 
GeneralRe: Update in C# using SQL Server Database. Pin
Agent__00713-May-15 17:02
professionalAgent__00713-May-15 17:02 
GeneralRe: Update in C# using SQL Server Database. Pin
Norris Chappell13-May-15 18:01
Norris Chappell13-May-15 18:01 
GeneralRe: Update in C# using SQL Server Database. Pin
Agent__00713-May-15 18:11
professionalAgent__00713-May-15 18:11 
GeneralRe: Update in C# using SQL Server Database. Pin
Norris Chappell13-May-15 18:21
Norris Chappell13-May-15 18:21 
GeneralRe: Update in C# using SQL Server Database. Pin
Agent__00713-May-15 18:35
professionalAgent__00713-May-15 18:35 
GeneralRe: Update in C# using SQL Server Database. Pin
Norris Chappell13-May-15 19:10
Norris Chappell13-May-15 19:10 
GeneralRe: Update in C# using SQL Server Database. Pin
Norris Chappell13-May-15 19:25
Norris Chappell13-May-15 19:25 
GeneralRe: Update in C# using SQL Server Database. Pin
Agent__00713-May-15 19:26
professionalAgent__00713-May-15 19:26 
GeneralRe: Update in C# using SQL Server Database. Pin
Norris Chappell13-May-15 19:53
Norris Chappell13-May-15 19:53 
GeneralRe: Update in C# using SQL Server Database. Pin
Agent__00713-May-15 20:05
professionalAgent__00713-May-15 20:05 
GeneralRe: Update in C# using SQL Server Database. Pin
Norris Chappell13-May-15 20:11
Norris Chappell13-May-15 20:11 
GeneralRe: Update in C# using SQL Server Database. Pin
Agent__00713-May-15 20:20
professionalAgent__00713-May-15 20:20 
GeneralRe: Update in C# using SQL Server Database. Pin
Norris Chappell13-May-15 20:24
Norris Chappell13-May-15 20:24 
GeneralRe: Update in C# using SQL Server Database. Pin
Norris Chappell13-May-15 20:30
Norris Chappell13-May-15 20:30 

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.