Click here to Skip to main content
15,905,136 members
Home / Discussions / C#
   

C#

 
GeneralRe: Regarding to .net Pin
michaelvdnest21-Dec-07 2:02
michaelvdnest21-Dec-07 2:02 
GeneralRe: Regarding to .net Pin
Paul Conrad22-Dec-07 8:20
professionalPaul Conrad22-Dec-07 8:20 
Generalcrtl copy and paste Pin
eyeseetee21-Dec-07 1:21
eyeseetee21-Dec-07 1:21 
GeneralRe: crtl copy and paste Pin
J4amieC21-Dec-07 1:42
J4amieC21-Dec-07 1:42 
GeneralRe: crtl copy and paste Pin
Anthony Mushrow21-Dec-07 7:15
professionalAnthony Mushrow21-Dec-07 7:15 
GeneralRe: crtl copy and paste Pin
Jordanwb23-Dec-07 9:29
Jordanwb23-Dec-07 9:29 
GeneralC#:Problem in DataGridView CellMouseClck Event Pin
kssknov21-Dec-07 0:35
kssknov21-Dec-07 0:35 
GeneralRe: C#:Problem in DataGridView CellMouseClck Event Pin
martin_hughes21-Dec-07 1:34
martin_hughes21-Dec-07 1:34 
Use the DataGridView's CellEnter event, and then use the CurrentCell property:


private void dataGridView1_CellEnter(object sender, DataGridViewCellEventArgs e)
{
label4.Text = dataGridView1.CurrentCell.Value != null ? dataGridView1.CurrentCell.Value.ToString() : String.Empty;
}


Notice that I'm also checking here if the cell value is null, and setting the textbox text to String.Empty if it is, otherwise you get a nasty Null Reference Exception when trying to call ToString() a non-existent value.

"On one of my cards it said I had to find temperatures lower than -8. The numbers I uncovered were -6 and -7 so I thought I had won, and so did the woman in the shop. But when she scanned the card the machine said I hadn't.

"I phoned Camelot and they fobbed me off with some story that -6 is higher - not lower - than -8 but I'm not having it."
-Tina Farrell, a 23 year old thicky from Levenshulme, Manchester.


Generalimage change on mouse over Pin
Eli Nurman21-Dec-07 0:27
Eli Nurman21-Dec-07 0:27 
GeneralRe: image change on mouse over Pin
Stevo Z21-Dec-07 0:57
Stevo Z21-Dec-07 0:57 
Generalsorting gridview columns Pin
eyeseetee21-Dec-07 0:11
eyeseetee21-Dec-07 0:11 
GeneralRe: sorting gridview columns Pin
martin_hughes21-Dec-07 3:04
martin_hughes21-Dec-07 3:04 
Questionsimple code creating problem .........why ? Pin
sindhutiwari20-Dec-07 23:54
sindhutiwari20-Dec-07 23:54 
AnswerRe: simple code creating problem .........why ? Pin
Colin Angus Mackay21-Dec-07 0:20
Colin Angus Mackay21-Dec-07 0:20 
GeneralSystem.FileIOPermission class Pin
Raheem MA20-Dec-07 23:33
Raheem MA20-Dec-07 23:33 
GeneralRe: System.FileIOPermission class Pin
Colin Angus Mackay21-Dec-07 0:06
Colin Angus Mackay21-Dec-07 0:06 
GeneralAdding two projects Pin
Prabhat00320-Dec-07 22:29
Prabhat00320-Dec-07 22:29 
GeneralRe: Adding two projects Pin
Colin Angus Mackay21-Dec-07 0:08
Colin Angus Mackay21-Dec-07 0:08 
GeneralTransfer XML to database Pin
kaluk20-Dec-07 22:24
kaluk20-Dec-07 22:24 
AnswerRe: Transfer XML to database Pin
boersnoes21-Dec-07 3:19
boersnoes21-Dec-07 3:19 
GeneralMdi parent logic .....c#.net Pin
sindhutiwari20-Dec-07 21:58
sindhutiwari20-Dec-07 21:58 
GeneralRe: Mdi parent logic .....c#.net Pin
CKnig20-Dec-07 22:21
CKnig20-Dec-07 22:21 
Generaldisabling gridview Pin
eyeseetee20-Dec-07 21:40
eyeseetee20-Dec-07 21:40 
AnswerRe: disabling gridview Pin
Ujjaval Modi20-Dec-07 21:49
Ujjaval Modi20-Dec-07 21:49 
GeneralRe: disabling gridview Pin
eyeseetee20-Dec-07 22:12
eyeseetee20-Dec-07 22: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.