Click here to Skip to main content
15,904,415 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to pad a string with zeroes Pin
PIEBALDconsult21-Apr-10 7:50
mvePIEBALDconsult21-Apr-10 7:50 
GeneralRe: How to pad a string with zeroes Pin
Luc Pattyn21-Apr-10 7:57
sitebuilderLuc Pattyn21-Apr-10 7:57 
GeneralRe: How to pad a string with zeroes Pin
PIEBALDconsult21-Apr-10 8:02
mvePIEBALDconsult21-Apr-10 8:02 
Questionwrite in a textbox Pin
Member 216810321-Apr-10 4:41
Member 216810321-Apr-10 4:41 
AnswerRe: write in a textbox Pin
sanforjackass21-Apr-10 4:52
sanforjackass21-Apr-10 4:52 
AnswerRe: write in a textbox Pin
Member 216810321-Apr-10 6:21
Member 216810321-Apr-10 6:21 
QuestionDataGridView SelectionChanged event Pin
eyalbi00721-Apr-10 4:18
eyalbi00721-Apr-10 4:18 
AnswerRe: DataGridView SelectionChanged event Pin
dan!sh 21-Apr-10 4:33
professional dan!sh 21-Apr-10 4:33 
What I can think of is to have a flag (boolean variable) in your form. Now, when you are changing selected cell through code, set this to false and make it true again in the end of event. Something like this:

bool isChangedByUser = true; // class level variable
.
.
.
isChangedByUser = false;
// Some code block that changes selected cell
.
.
.
void dgv_SelectionChanged(object sender, EventArgs e)
{
if(isChangedByUser)
{
// Do something
}
isChangedByUser = true;            
}

QuestionRe: DataGridView SelectionChanged event Pin
eyalbi00721-Apr-10 4:43
eyalbi00721-Apr-10 4:43 
AnswerRe: DataGridView SelectionChanged event Pin
dan!sh 21-Apr-10 4:58
professional dan!sh 21-Apr-10 4:58 
QuestionHiding command prompt while running an .bat file? Pin
Pawan Kiran21-Apr-10 4:12
Pawan Kiran21-Apr-10 4:12 
AnswerRe: Hiding command prompt while running an .bat file? Pin
dan!sh 21-Apr-10 4:27
professional dan!sh 21-Apr-10 4:27 
GeneralRe: Hiding command prompt while running an .bat file? Pin
Pawan Kiran22-Apr-10 1:15
Pawan Kiran22-Apr-10 1:15 
AnswerRe: Hiding command prompt while running an .bat file? Pin
O.Phil21-Apr-10 5:14
O.Phil21-Apr-10 5:14 
GeneralRe: Hiding command prompt while running an .bat file? Pin
Pawan Kiran22-Apr-10 1:10
Pawan Kiran22-Apr-10 1:10 
Questiondropdownlist selectedindexChanged event in datagridview Pin
NarVish21-Apr-10 3:42
NarVish21-Apr-10 3:42 
AnswerRe: dropdownlist selectedindexChanged event in datagridview Pin
dan!sh 21-Apr-10 4:26
professional dan!sh 21-Apr-10 4:26 
QuestionSplit a video in frames Pin
Obaid Ahmed21-Apr-10 2:34
Obaid Ahmed21-Apr-10 2:34 
AnswerRe: Split a video in frames Pin
annathor21-Apr-10 3:03
annathor21-Apr-10 3:03 
GeneralRe: Split a video in frames Pin
Obaid Ahmed22-Apr-10 0:00
Obaid Ahmed22-Apr-10 0:00 
GeneralRe: Split a video in frames [modified] Pin
annathor22-Apr-10 0:25
annathor22-Apr-10 0:25 
GeneralRe: Split a video in frames Pin
Obaid Ahmed22-Apr-10 0:38
Obaid Ahmed22-Apr-10 0:38 
GeneralRe: Split a video in frames Pin
Obaid Ahmed22-Apr-10 1:03
Obaid Ahmed22-Apr-10 1:03 
GeneralRe: Split a video in frames [modified] Pin
annathor22-Apr-10 1:44
annathor22-Apr-10 1:44 
GeneralRe: Split a video in frames Pin
Obaid Ahmed22-Apr-10 9:43
Obaid Ahmed22-Apr-10 9:43 

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.