Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
AnswerRe: C++ to C# Translation Pin
Garth J Lancaster28-Nov-12 12:22
professionalGarth J Lancaster28-Nov-12 12:22 
GeneralRe: C++ to C# Translation Pin
GenJerDan28-Nov-12 14:14
GenJerDan28-Nov-12 14:14 
AnswerRe: C++ to C# Translation Pin
Espen Harlinn28-Nov-12 12:39
professionalEspen Harlinn28-Nov-12 12:39 
GeneralRe: C++ to C# Translation Pin
GenJerDan28-Nov-12 14:11
GenJerDan28-Nov-12 14:11 
GeneralRe: C++ to C# Translation Pin
Espen Harlinn28-Nov-12 22:00
professionalEspen Harlinn28-Nov-12 22:00 
AnswerRe: C++ to C# Translation Pin
V.28-Nov-12 21:39
professionalV.28-Nov-12 21:39 
AnswerRe: C++ to C# Translation Pin
David Knechtges29-Nov-12 2:55
David Knechtges29-Nov-12 2:55 
QuestionSave data from Unbound C# DataGridView to Sql Server and then Bind Pin
ahmed_one28-Nov-12 0:59
ahmed_one28-Nov-12 0:59 
I am a newbie to C#, my development environment is:

Visual Studio 2010 Ultimate Edition
Sql Server 2005
Programming Language C# 2010

I've a form with Unbound Datagridview, from which data is save to Sql Server 2005 by looping through For..Each and pass SQL INSERT Statement when user clicks Save button without any problem.

Now what I need is a way that for same Save button, if data is saved in Sql Server then DataGridView will bind to that records so that if user want to Update/Delete/Add data he/she just need to edit the data and again press Save button. All records will share the same unique ID. It's a products database, and when user click save it will generate a transaction Id same for all products user enter when saving. So I think I need to generate a Select statement and retrieve all those records user save through that Unique ID, but then how to bind it to DataGridView datasource and how to Update/Delete through SqlAdapter or other?

Thanks and best regards

Ahmed
QuestionError: Interfaces cannot contain fields Pin
Joni_7827-Nov-12 23:43
Joni_7827-Nov-12 23:43 
AnswerRe: Error: Interfaces cannot contain fields Pin
Richard MacCutchan27-Nov-12 23:51
mveRichard MacCutchan27-Nov-12 23:51 
GeneralRe: Error: Interfaces cannot contain fields Pin
Joni_7828-Nov-12 0:03
Joni_7828-Nov-12 0:03 
AnswerRe: Error: Interfaces cannot contain fields Pin
Pete O'Hanlon28-Nov-12 0:06
mvePete O'Hanlon28-Nov-12 0:06 
GeneralRe: Error: Interfaces cannot contain fields Pin
Joni_7828-Nov-12 0:28
Joni_7828-Nov-12 0:28 
GeneralRe: Error: Interfaces cannot contain fields Pin
Joni_7828-Nov-12 0:52
Joni_7828-Nov-12 0:52 
GeneralRe: Error: Interfaces cannot contain fields Pin
Pete O'Hanlon28-Nov-12 1:08
mvePete O'Hanlon28-Nov-12 1:08 
GeneralAbout URL Pin
Varsha R27-Nov-12 20:42
Varsha R27-Nov-12 20:42 
GeneralRe: About URL Pin
Pete O'Hanlon27-Nov-12 20:52
mvePete O'Hanlon27-Nov-12 20:52 
GeneralRe: About URL Pin
girishru12328-Nov-12 22:23
girishru12328-Nov-12 22:23 
QuestionHow do you programmatically expand a url link to its true location? Pin
Xarzu27-Nov-12 20:25
Xarzu27-Nov-12 20:25 
AnswerRe: How do you programmatically expand a url link to its true location? Pin
Bernhard Hiller27-Nov-12 22:11
Bernhard Hiller27-Nov-12 22:11 
QuestionConverted VB.NET to C# With Error Pin
daveofgv27-Nov-12 10:40
daveofgv27-Nov-12 10:40 
AnswerRe: Converted VB.NET to C# With Error Pin
PIEBALDconsult27-Nov-12 12:14
mvePIEBALDconsult27-Nov-12 12:14 
GeneralRe: Converted VB.NET to C# With Error Pin
Eddy Vluggen27-Nov-12 13:38
professionalEddy Vluggen27-Nov-12 13:38 
AnswerRe: Converted VB.NET to C# With Error Pin
Pete O'Hanlon27-Nov-12 20:49
mvePete O'Hanlon27-Nov-12 20:49 
AnswerRe: Converted VB.NET to C# With Error Pin
Bernhard Hiller27-Nov-12 22:19
Bernhard Hiller27-Nov-12 22:19 

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.