Click here to Skip to main content
15,911,848 members
Home / Discussions / C#
   

C#

 
QuestionWhich O/R Mapper for ERP application Pin
sergiq27-May-09 0:35
sergiq27-May-09 0:35 
QuestionConverting Hindi 2 english Pin
tauras816-May-09 23:43
tauras816-May-09 23:43 
AnswerRe: Converting Hindi 2 english Pin
Vikram A Punathambekar6-May-09 23:51
Vikram A Punathambekar6-May-09 23:51 
AnswerRe: Converting Hindi 2 english Pin
Rajesh R Subramanian7-May-09 0:15
professionalRajesh R Subramanian7-May-09 0:15 
GeneralRe: Converting Hindi 2 english Pin
karthizen27-Aug-09 22:16
karthizen27-Aug-09 22:16 
QuestionPBX VOIP Pin
imranliaqat6-May-09 23:36
imranliaqat6-May-09 23:36 
AnswerRe: PBX VOIP Pin
benjymous6-May-09 23:54
benjymous6-May-09 23:54 
GeneralRe: PBX VOIP Pin
imranliaqat7-May-09 0:08
imranliaqat7-May-09 0:08 
GeneralRe: PBX VOIP Pin
stancrm7-May-09 0:22
stancrm7-May-09 0:22 
GeneralRe: PBX VOIP Pin
imranliaqat7-May-09 0:25
imranliaqat7-May-09 0:25 
QuestionDatagrid view Pin
nagendra.vk6-May-09 23:02
nagendra.vk6-May-09 23:02 
Questionchange name of c# application Pin
lost_in_code6-May-09 22:55
lost_in_code6-May-09 22:55 
AnswerRe: change name of c# application Pin
SayreCC6-May-09 22:59
SayreCC6-May-09 22:59 
QuestionHow to Display Image in Detail view from database for different record Pin
murary6-May-09 22:32
murary6-May-09 22:32 
QuestionExecute a command in command prompt from C# Pin
Mc_Topaz6-May-09 22:29
Mc_Topaz6-May-09 22:29 
AnswerRe: Execute a command in command prompt from C# Pin
Spunky Coder6-May-09 22:42
Spunky Coder6-May-09 22:42 
GeneralRe: Execute a command in command prompt from C# Pin
tolw6-May-09 22:52
tolw6-May-09 22:52 
GeneralRe: Execute a command in command prompt from C# Pin
Spunky Coder6-May-09 23:03
Spunky Coder6-May-09 23:03 
GeneralRe: Execute a command in command prompt from C# Pin
Mc_Topaz7-May-09 3:52
Mc_Topaz7-May-09 3:52 
GeneralRe: Execute a command in command prompt from C# Pin
Mc_Topaz7-May-09 3:51
Mc_Topaz7-May-09 3:51 
AnswerRe: Execute a command in command prompt from C# Pin
dan!sh 6-May-09 22:59
professional dan!sh 6-May-09 22:59 
AnswerRe: Execute a command in command prompt from C# Pin
khoanguyen12-Oct-09 18:51
khoanguyen12-Oct-09 18:51 
GeneralWierd DataGridView processing with a thread Pin
Mycroft Holmes6-May-09 22:06
professionalMycroft Holmes6-May-09 22:06 
I have a DGV with checkboxes, a method processes each row and when complete unchecks the row.

This works fine, click the button and the form freezes and returns sometime later with all the boxes unchecked.

Now I introduce a separate thread to do the processing, split out the UI update and use the following to uncheck each row as it completes.

            this.BeginInvoke((MethodInvoker)delegate
            {
                // this will be on main thread
                UpdateGrid(oRow, iRecords);
            });

private void UpdateGrid(DataGridViewRow oRow, int iRecords)
{
    oRow.Cells["Records"].Value = iRecords;
    oRow.Cells["Sel"].Value = false;
}


This works fine EXCEPT the first row (which happens to be selected but this is irrelevant) does not uncheck.

Slap a break point on and the index is hit and the first row is unchecked properly so I hit F5. Now the 2nd row is left checked. Seems there is an interaction between the debugger and the thread processing.

Has anyone else seen this type of behaviour?


Never underestimate the power of human stupidity
RAH

Questionget SQL Insert Query Pin
Abdul Rahman Hamidy6-May-09 21:40
Abdul Rahman Hamidy6-May-09 21:40 
AnswerRe: get SQL Insert Query Pin
Rob Philpott6-May-09 22:49
Rob Philpott6-May-09 22:49 

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.