Click here to Skip to main content
16,004,458 members
Home / Discussions / C#
   

C#

 
AnswerRe: Remove data from listbox, then overwrite (save) listbox data in a new create file. Pin
Nishant Singh11-Dec-08 4:56
Nishant Singh11-Dec-08 4:56 
QuestionRe: Remove data from listbox, then overwrite (save) listbox data in a new create file. Pin
irsalina11-Dec-08 15:55
irsalina11-Dec-08 15:55 
QuestionQuestion about dates Pin
harcaype11-Dec-08 3:36
harcaype11-Dec-08 3:36 
AnswerRe: Question about dates Pin
Simon P Stevens11-Dec-08 3:51
Simon P Stevens11-Dec-08 3:51 
RantRe: Question about dates Pin
harcaype11-Dec-08 4:12
harcaype11-Dec-08 4:12 
GeneralRe: Question about dates Pin
Simon P Stevens11-Dec-08 4:56
Simon P Stevens11-Dec-08 4:56 
GeneralRe: Question about dates Pin
Mirko198011-Dec-08 4:57
Mirko198011-Dec-08 4:57 
QuestionUpdate changes made in gridview in DataTable Pin
Yustme11-Dec-08 3:16
Yustme11-Dec-08 3:16 
Hi,

I have a sql database with data about customers. I made it possible to add/change/remove customers from the gridview.

The customer's data are stored in a sql database. Suppose the user adds/changes/removes a row/cell in my gridview.

How can i update the changes made in the gridview in the datatable?

The idea behind all this is to update the sql database as much as possible 'automatically'.

This is a peace of my code:

dbCommand.CommandText = "SELECT firstName, LastName FROM Customer";
customerAdapter = new SqlDataAdapter(dbCommand.CommandText, connectionString);
reader = dbCommand.ExecuteReader();

// Populate a new data table and bind it to the BindingSource.
customerTable = new System.Data.DataTable();
customerAdapter.Fill(customerTable);
grdcustomerManagement.DataSource = customerTable;


Any idea's?
AnswerRe: Update changes made in gridview in DataTable Pin
Dave Kreskowiak11-Dec-08 4:27
mveDave Kreskowiak11-Dec-08 4:27 
GeneralRe: Update changes made in gridview in DataTable Pin
Yustme11-Dec-08 4:38
Yustme11-Dec-08 4:38 
GeneralRe: Update changes made in gridview in DataTable Pin
Dave Kreskowiak11-Dec-08 6:24
mveDave Kreskowiak11-Dec-08 6:24 
GeneralRe: Update changes made in gridview in DataTable Pin
Yustme11-Dec-08 10:34
Yustme11-Dec-08 10:34 
GeneralRe: Update changes made in gridview in DataTable Pin
Dave Kreskowiak11-Dec-08 12:31
mveDave Kreskowiak11-Dec-08 12:31 
GeneralRe: Update changes made in gridview in DataTable [modified] Pin
Yustme11-Dec-08 20:22
Yustme11-Dec-08 20:22 
QuestionReport viewer Pin
Neo Andreson11-Dec-08 2:52
Neo Andreson11-Dec-08 2:52 
QuestionList items [modified] Pin
nlowdon11-Dec-08 2:45
nlowdon11-Dec-08 2:45 
AnswerRe: List items Pin
Simon P Stevens11-Dec-08 2:55
Simon P Stevens11-Dec-08 2:55 
AnswerRe: List items Pin
Brij11-Dec-08 3:11
mentorBrij11-Dec-08 3:11 
AnswerRe: List items [modified] Pin
#realJSOP11-Dec-08 4:03
professional#realJSOP11-Dec-08 4:03 
AnswerRe: List items Pin
Paul Unsworth11-Dec-08 4:37
Paul Unsworth11-Dec-08 4:37 
GeneralRe: List items Pin
Luc Pattyn11-Dec-08 4:42
sitebuilderLuc Pattyn11-Dec-08 4:42 
GeneralRe: List items Pin
#realJSOP11-Dec-08 4:57
professional#realJSOP11-Dec-08 4:57 
QuestionDirectory.GetFiles - how do I get the file names only and not the complete path? Pin
Member 340288611-Dec-08 1:26
Member 340288611-Dec-08 1:26 
AnswerRe: Directory.GetFiles - how do I get the file names only and not the complete path? Pin
TJS4u11-Dec-08 1:31
TJS4u11-Dec-08 1:31 
GeneralRe: Directory.GetFiles - how do I get the file names only and not the complete path? Pin
Member 340288611-Dec-08 1:41
Member 340288611-Dec-08 1:41 

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.