Click here to Skip to main content
15,915,172 members
Home / Discussions / C#
   

C#

 
Questionhowto transfer data from datagridview to MS Word and MS Excel ? Pin
cmpeng348-Jun-06 3:51
cmpeng348-Jun-06 3:51 
AnswerRe: howto transfer data from datagridview to MS Word and MS Excel ? Pin
Suamal9-Jun-06 0:51
Suamal9-Jun-06 0:51 
GeneralMessage Closed Pin
9-Jun-06 1:43
cmpeng349-Jun-06 1:43 
GeneralRe: howto transfer data from datagridview to MS Word and MS Excel ? Pin
Mairaaj Khan9-Jun-06 20:08
professionalMairaaj Khan9-Jun-06 20:08 
Questionhello Stephan Samuel Pin
Mahmood Ilyas8-Jun-06 2:22
Mahmood Ilyas8-Jun-06 2:22 
AnswerRe: hello Stephan Samuel Pin
J4amieC8-Jun-06 3:01
J4amieC8-Jun-06 3:01 
QuestionCopy content of Excel cells Pin
sydney_sider8-Jun-06 2:19
sydney_sider8-Jun-06 2:19 
QuestionChanging data in DataTable does not update bound DataGridView Pin
iswoolley8-Jun-06 1:30
iswoolley8-Jun-06 1:30 
I have a program with a DataGridView on a Form, and another object that contains a DataTable. The object creates a new Thread and periodically changes the data in the DataTable. The DataGridView is bound to the DataTable, but only updates when the Form is forced to redraw. It seems as if the changes to the DataTable do not fire an event off to the DataGridView.

I use the following command to bind my DataTable to my DataGridView:

gridView.DataSource=dataTable;

and I change the data in my DataTable using:

dataTable.Rows[x][y]=value;<br />
dataTable.Rows[x].AcceptChanges();


Is there an alternate way of changing the data that guarantees an event is fired?

Or is there an alternate way of binding the DataTable to the DataGridView?

Is the problem that there are 2 threads, and they are not allowed to communicate?

Any help/advice is much appreciated.

Iain Confused | :confused:
AnswerRe: Changing data in DataTable does not update bound DataGridView Pin
alyeasad8-Jun-06 1:49
alyeasad8-Jun-06 1:49 
GeneralRe: Changing data in DataTable does not update bound DataGridView Pin
iswoolley8-Jun-06 2:02
iswoolley8-Jun-06 2:02 
GeneralRe: Changing data in DataTable does not update bound DataGridView Pin
PyroManiak8-Jun-06 7:52
PyroManiak8-Jun-06 7:52 
GeneralRe: Changing data in DataTable does not update bound DataGridView Pin
iswoolley8-Jun-06 22:26
iswoolley8-Jun-06 22:26 
Questionusing C# code in VC++(MFC) application Pin
Shailesh Ha8-Jun-06 1:16
Shailesh Ha8-Jun-06 1:16 
AnswerRe: using C# code in VC++(MFC) application Pin
Jun Du8-Jun-06 7:57
Jun Du8-Jun-06 7:57 
GeneralRe: using C# code in VC++(MFC) application Pin
Shailesh Ha12-Jun-06 21:31
Shailesh Ha12-Jun-06 21:31 
AnswerRe: using C# code in VC++(MFC) application Pin
Koushik Biswas8-Jun-06 8:04
Koushik Biswas8-Jun-06 8:04 
GeneralRe: using C# code in VC++(MFC) application Pin
Shailesh Ha9-Jun-06 2:06
Shailesh Ha9-Jun-06 2:06 
GeneralRe: using C# code in VC++(MFC) application Pin
Koushik Biswas9-Jun-06 6:25
Koushik Biswas9-Jun-06 6:25 
GeneralRe: using C# code in VC++(MFC) application Pin
Shailesh Ha11-Jun-06 19:03
Shailesh Ha11-Jun-06 19:03 
QuestionHTML to PDF Converter Pin
saud_a_k8-Jun-06 1:07
saud_a_k8-Jun-06 1:07 
AnswerRe: HTML to PDF Converter Pin
rfjeld8-Jun-06 1:28
rfjeld8-Jun-06 1:28 
Questionhowto use datagridview footer ? help ??? Pin
cmpeng348-Jun-06 1:01
cmpeng348-Jun-06 1:01 
AnswerRe: howto use datagridview footer ? help ??? Pin
leckey8-Jun-06 5:32
leckey8-Jun-06 5:32 
Questiona question about relational database with c# ? [modified] Pin
cmpeng348-Jun-06 0:52
cmpeng348-Jun-06 0:52 
AnswerRe: a question about relational database with c# ? [modified] Pin
Stephan Samuel8-Jun-06 0:55
Stephan Samuel8-Jun-06 0:55 

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.