Click here to Skip to main content
15,567,221 members
Home / Discussions / C#
   

C#

 
GeneralRe: Fuzzy C# code Pin
BillWoodruff20-May-12 16:26
professionalBillWoodruff20-May-12 16:26 
QuestionHow to close (kill, release?) a socket, which is in FIN_WAIT_2 state? Pin
ShadowUz20-May-12 8:29
ShadowUz20-May-12 8:29 
AnswerRe: How to close (kill, release?) a socket, which is in FIN_WAIT_2 state? Pin
Ravi Bhavnani20-May-12 8:32
professionalRavi Bhavnani20-May-12 8:32 
GeneralRe: How to close (kill, release?) a socket, which is in FIN_WAIT_2 state? Pin
ShadowUz20-May-12 8:43
ShadowUz20-May-12 8:43 
AnswerRe: How to close (kill, release?) a socket, which is in FIN_WAIT_2 state? Pin
Ravi Bhavnani20-May-12 8:48
professionalRavi Bhavnani20-May-12 8:48 
QuestionHow to refresh or update DataGrid Cell Value ... Pin
nassimnastaran18-May-12 21:25
nassimnastaran18-May-12 21:25 
AnswerRe: How to refresh or update DataGrid Cell Value ... Pin
OriginalGriff18-May-12 21:51
mvaOriginalGriff18-May-12 21:51 
AnswerRe: How to refresh or update DataGrid Cell Value ... Pin
Alan N19-May-12 4:06
Alan N19-May-12 4:06 
This is happening because a cell is still in edit mode when it's Value property is read. The new value does not become available until it has been committed and edit mode ended.

As you found out this can be done by moving the focus to another cell or control, but it can also be done programmatically by calling the DataGridView's EndEdit method.

Inserting the following line before you start reading values from the grid should fix the problem.
C#
dgv.EndEdit();

Alan.
GeneralRe: How to refresh or update DataGrid Cell Value ... Pin
nassimnastaran19-May-12 10:01
nassimnastaran19-May-12 10:01 
QuestionDoes This Only Happen To Me? Pin
Roger Wright18-May-12 19:53
professionalRoger Wright18-May-12 19:53 
AnswerRe: Does This Only Happen To Me? Pin
OriginalGriff18-May-12 21:58
mvaOriginalGriff18-May-12 21:58 
GeneralRe: Does This Only Happen To Me? Pin
Pete O'Hanlon18-May-12 23:42
mvaPete O'Hanlon18-May-12 23:42 
GeneralRe: Does This Only Happen To Me? Pin
OriginalGriff18-May-12 23:47
mvaOriginalGriff18-May-12 23:47 
GeneralRe: Does This Only Happen To Me? Pin
Pete O'Hanlon19-May-12 3:10
mvaPete O'Hanlon19-May-12 3:10 
GeneralRe: Does This Only Happen To Me? Pin
OriginalGriff19-May-12 3:20
mvaOriginalGriff19-May-12 3:20 
GeneralRe: Does This Only Happen To Me? Pin
BillW3319-May-12 8:05
professionalBillW3319-May-12 8:05 
QuestionA Layout Question, And A Bit More Pin
Roger Wright17-May-12 20:47
professionalRoger Wright17-May-12 20:47 
AnswerRe: A Layout Question, And A Bit More Pin
Pete O'Hanlon18-May-12 0:19
mvaPete O'Hanlon18-May-12 0:19 
GeneralRe: A Layout Question, And A Bit More Pin
Roger Wright18-May-12 12:35
professionalRoger Wright18-May-12 12:35 
GeneralRe: A Layout Question, And A Bit More Pin
Pete O'Hanlon18-May-12 23:38
mvaPete O'Hanlon18-May-12 23:38 
GeneralRe: A Layout Question, And A Bit More Pin
GuyThiebaut21-May-12 2:39
professionalGuyThiebaut21-May-12 2:39 
GeneralRe: A Layout Question, And A Bit More Pin
Pete O'Hanlon21-May-12 3:02
mvaPete O'Hanlon21-May-12 3:02 
AnswerRe: A Layout Question, And A Bit More Pin
PIEBALDconsult18-May-12 6:18
professionalPIEBALDconsult18-May-12 6:18 
GeneralRe: A Layout Question, And A Bit More Pin
Roger Wright18-May-12 9:47
professionalRoger Wright18-May-12 9:47 
GeneralRe: A Layout Question, And A Bit More Pin
PIEBALDconsult18-May-12 10:12
professionalPIEBALDconsult18-May-12 10:12 

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.