Click here to Skip to main content
15,922,894 members
Home / Discussions / C#
   

C#

 
GeneralRe: love Pin
Luc Pattyn9-Nov-09 5:02
sitebuilderLuc Pattyn9-Nov-09 5:02 
GeneralRe: love Pin
EliottA9-Nov-09 5:04
EliottA9-Nov-09 5:04 
GeneralRe: love Pin
Christian Graus9-Nov-09 9:17
protectorChristian Graus9-Nov-09 9:17 
Questiondatagridview will crash Pin
reza assar9-Nov-09 4:03
reza assar9-Nov-09 4:03 
AnswerRe: datagridview will crash Pin
EliottA9-Nov-09 4:19
EliottA9-Nov-09 4:19 
GeneralRe: datagridview will crash Pin
reza assar9-Nov-09 18:17
reza assar9-Nov-09 18:17 
AnswerRe: datagridview will crash Pin
konglx sir9-Nov-09 4:29
konglx sir9-Nov-09 4:29 
AnswerRe: datagridview will crash Pin
reza assar9-Jan-10 4:16
reza assar9-Jan-10 4:16 
and at last i get the answer:
in fact , there is a malicious thread that want to access my DataGridView !
some thing like a high frequently repeatable time tick or ...
in fact i had to use this.Invoke() with parameters that will rise the update DataGridView Method!
i used the fallowing solution!

delegate void AddDatevalueHandler(object[] newRow);
delegate void DeleteDatevalueHandler(string deletedRow);
.
.
.
private AddDatevalueHandler AddHandler;
private DeleteDatevalueHandler deleteHandler;
.
.
.
AddHandler = new AddDatevalueHandler(AddData);
deleteHandler = new DeleteDatevalueHandler(DeleteData);
.
.
.
object[] param ={ NewRow };
this.Invoke(AddHandler, param);
.
.
.
private void AddData(object[] NewRow)
{
dataGridAlarms.SuspendLayout();
ds_main.Tables[0].Rows.Add(NewRow);
dataGridAlarms.ResumeLayout(true);
}

private void DeleteRow(string ID)
{
dataGridAlarms.SuspendLayout();
this.Invoke(deleteHandler, parameter);
dataGridAlarms.ResumeLayout(true);
}


good luck Big Grin | :-D
QuestionGUID Unique identifer theory question Pin
saludalabs9-Nov-09 3:35
saludalabs9-Nov-09 3:35 
AnswerRe: GUID Unique identifer theory question Pin
PIEBALDconsult9-Nov-09 3:44
mvePIEBALDconsult9-Nov-09 3:44 
AnswerRe: GUID Unique identifer theory question Pin
Richard MacCutchan9-Nov-09 3:46
mveRichard MacCutchan9-Nov-09 3:46 
GeneralRe: GUID Unique identifer theory question Pin
saludalabs9-Nov-09 3:51
saludalabs9-Nov-09 3:51 
GeneralRe: GUID Unique identifer theory question Pin
The Man from U.N.C.L.E.9-Nov-09 7:56
The Man from U.N.C.L.E.9-Nov-09 7:56 
QuestionHow to Browse my Basic .aspx file with HTTPS insted HTTP Pin
Shaik Haneef9-Nov-09 3:16
Shaik Haneef9-Nov-09 3:16 
AnswerRe: How to Browse my Basic .aspx file with HTTPS insted HTTP Pin
The Man from U.N.C.L.E.9-Nov-09 7:50
The Man from U.N.C.L.E.9-Nov-09 7:50 
QuestionGDI question ? Pin
Mohammad Dayyan9-Nov-09 1:51
Mohammad Dayyan9-Nov-09 1:51 
AnswerRe: GDI question ? Pin
Luc Pattyn9-Nov-09 2:21
sitebuilderLuc Pattyn9-Nov-09 2:21 
GeneralRe: GDI question ? Pin
Mohammad Dayyan9-Nov-09 2:24
Mohammad Dayyan9-Nov-09 2:24 
GeneralRe: GDI question ? Pin
Luc Pattyn9-Nov-09 2:28
sitebuilderLuc Pattyn9-Nov-09 2:28 
AnswerRe: GDI question ? Pin
Hristo-Bojilov9-Nov-09 3:52
Hristo-Bojilov9-Nov-09 3:52 
QuestionRegarding Crystal report & Windows service? Pin
Tridip Bhattacharjee9-Nov-09 1:47
professionalTridip Bhattacharjee9-Nov-09 1:47 
QuestionReading xlsx file in C# returning blank value Pin
bensonbenadict9-Nov-09 1:13
bensonbenadict9-Nov-09 1:13 
AnswerRe: Reading xlsx file in C# returning blank value Pin
Swetha S14-Jul-10 19:13
Swetha S14-Jul-10 19:13 
Questioni have problem with end of process Pin
E_Gold9-Nov-09 0:14
E_Gold9-Nov-09 0:14 
AnswerRe: i have problem with end of process Pin
Luc Pattyn9-Nov-09 0:27
sitebuilderLuc Pattyn9-Nov-09 0:27 

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.