Click here to Skip to main content
15,913,907 members
Home / Discussions / C#
   

C#

 
QuestionRotate rectangle with mouse move events... Pin
priyareguri3-Feb-09 4:42
priyareguri3-Feb-09 4:42 
AnswerRe: Rotate rectangle with mouse move events... Pin
EliottA3-Feb-09 4:45
EliottA3-Feb-09 4:45 
GeneralRe: Rotate rectangle with mouse move events... Pin
priyareguri3-Feb-09 4:58
priyareguri3-Feb-09 4:58 
GeneralRe: Rotate rectangle with mouse move events... Pin
l a u r e n3-Feb-09 5:01
l a u r e n3-Feb-09 5:01 
GeneralRe: Rotate rectangle with mouse move events... Pin
musefan3-Feb-09 5:22
musefan3-Feb-09 5:22 
QuestionSmart Client Alternative Pin
MatthysDT3-Feb-09 3:30
MatthysDT3-Feb-09 3:30 
AnswerRe: Smart Client Alternative Pin
Rob Philpott3-Feb-09 4:32
Rob Philpott3-Feb-09 4:32 
QuestionHow to update database from datagridview directly? Pin
I'm a beginner3-Feb-09 2:48
I'm a beginner3-Feb-09 2:48 
Hi all,

I have a form with a datagridview, a button named "View" and a button named "Update". When i click the button View, datagridview will show all data from database named B sucessfully. Then i can modify or delete or enter new data into datagridview.

I wonder how to update database from datagridview when the button Update is clicked. I try some code but it did not work:
...
myDataSet.Merge(DataSetChanged);
adapt.Update(myDataSet);

// inform the user
label1.Text = adapt.UpdateCommand.CommandText;
Application.DoEvents();

myDataSet.AcceptChanges();
dataGridView1.DataSource = myDataSet.Tables[0].DefaultView;


Regard,
AnswerRe: How to update database from datagridview directly? Pin
Ennis Ray Lynch, Jr.3-Feb-09 3:16
Ennis Ray Lynch, Jr.3-Feb-09 3:16 
GeneralRe: How to update database from datagridview directly? Pin
I'm a beginner3-Feb-09 4:25
I'm a beginner3-Feb-09 4:25 
GeneralRe: How to update database from datagridview directly? Pin
I'm a beginner3-Feb-09 5:32
I'm a beginner3-Feb-09 5:32 
Question(related to prasadbuddhika's problem) retrieving huge amount of data Pin
Yasithl3-Feb-09 2:45
Yasithl3-Feb-09 2:45 
AnswerRe: (related to prasadbuddhika's problem) retrieving huge amount of data Pin
EliottA3-Feb-09 2:59
EliottA3-Feb-09 2:59 
AnswerRe: (related to prasadbuddhika's problem) retrieving huge amount of data Pin
Ennis Ray Lynch, Jr.3-Feb-09 3:18
Ennis Ray Lynch, Jr.3-Feb-09 3:18 
GeneralRe: (related to prasadbuddhika's problem) retrieving huge amount of data Pin
PIEBALDconsult3-Feb-09 4:10
mvePIEBALDconsult3-Feb-09 4:10 
GeneralRe: (related to prasadbuddhika's problem) retrieving huge amount of data Pin
Luc Pattyn3-Feb-09 5:24
sitebuilderLuc Pattyn3-Feb-09 5:24 
Questionmultithread performance problem for web service call Pin
George_George3-Feb-09 2:39
George_George3-Feb-09 2:39 
AnswerRe: multithread performance problem for web service call Pin
EliottA3-Feb-09 2:41
EliottA3-Feb-09 2:41 
GeneralRe: multithread performance problem for web service call Pin
George_George4-Feb-09 21:46
George_George4-Feb-09 21:46 
AnswerRe: multithread performance problem for web service call Pin
Yasithl3-Feb-09 3:01
Yasithl3-Feb-09 3:01 
GeneralRe: multithread performance problem for web service call Pin
George_George4-Feb-09 21:48
George_George4-Feb-09 21:48 
AnswerRe: multithread performance problem for web service call Pin
Ennis Ray Lynch, Jr.3-Feb-09 3:24
Ennis Ray Lynch, Jr.3-Feb-09 3:24 
GeneralRe: multithread performance problem for web service call Pin
George_George4-Feb-09 21:55
George_George4-Feb-09 21:55 
GeneralRe: multithread performance problem for web service call Pin
Ennis Ray Lynch, Jr.5-Feb-09 3:00
Ennis Ray Lynch, Jr.5-Feb-09 3:00 
GeneralRe: multithread performance problem for web service call Pin
George_George7-Feb-09 1:23
George_George7-Feb-09 1:23 

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.