Click here to Skip to main content
15,912,578 members
Home / Discussions / C#
   

C#

 
GeneralRe: Serial Port Class bug??? Pin
glennPattonWork33-Nov-11 23:22
professionalglennPattonWork33-Nov-11 23:22 
QuestionPassing array by reference from C# to c++/cli Pin
eyalbi0073-Nov-11 4:40
eyalbi0073-Nov-11 4:40 
AnswerRe: Passing array by reference from C# to c++/cli Pin
Mark Salsbery3-Nov-11 5:25
Mark Salsbery3-Nov-11 5:25 
GeneralRe: Passing array by reference from C# to c++/cli Pin
eyalbi0073-Nov-11 22:23
eyalbi0073-Nov-11 22:23 
GeneralRe: Passing array by reference from C# to c++/cli Pin
Nish Nishant4-Nov-11 4:32
sitebuilderNish Nishant4-Nov-11 4:32 
GeneralRe: Passing array by reference from C# to c++/cli Pin
Nish Nishant4-Nov-11 4:32
sitebuilderNish Nishant4-Nov-11 4:32 
AnswerRe: Passing array by reference from C# to c++/cli Pin
Luc Pattyn3-Nov-11 5:34
sitebuilderLuc Pattyn3-Nov-11 5:34 
QuestionDatagrid checkbox column update Pin
HarYur2-Nov-11 23:19
HarYur2-Nov-11 23:19 
******************************************************
the code works as follows.
If you chose them all, works fine, but not all, of one or more than one election, or choose not at all, the program does not work

stands in this code.


if (dr.Cells [0]. Value.ToString ()! = "true")


How do we solve the problem?




C#
List<int> TestId = new List<int>();
for (int i = 0; i < dataGridView2.RowCount; i++)

{


foreach (DataGridViewRow dr in dataGridView2.Rows)

{


if (dr.Cells[0].Value.ToString() != "true")



{

TestId.Add(Convert.ToInt32(dr.Cells[2].Value.ToString()));



}

}

}

if (baglanti.State == ConnectionState.Closed)

baglanti.Open();

komut.Connection = baglanti;

for (int i = 0; i < TestId.Count; i++)

{

komut.CommandText = "update HASTA_SONUCLARI SET ONAYLANDI='" + true + "' where PROTOKOL_NO='" + TextBox6.Text + "' and TEST_NO='" + TestId + "'";

komut.ExecuteNonQuery();

}

MessageBox.Show("Onaylandı.");

baglanti.Close();

}

}

AnswerRe: Datagrid checkbox column update Pin
Luc Pattyn2-Nov-11 23:39
sitebuilderLuc Pattyn2-Nov-11 23:39 
AnswerRe: Datagrid checkbox column update Pin
Bernhard Hiller3-Nov-11 22:14
Bernhard Hiller3-Nov-11 22:14 
QuestionHow to run an application action on clicking link Pin
Knightwalker2-Nov-11 11:12
Knightwalker2-Nov-11 11:12 
AnswerRe: How to run an application action on clicking link Pin
Abhinav S2-Nov-11 17:59
Abhinav S2-Nov-11 17:59 
AnswerRe: How to run an application action on clicking link Pin
Mycroft Holmes2-Nov-11 20:24
professionalMycroft Holmes2-Nov-11 20:24 
Questionerror in adding the reference of my web service in C#.net Pin
yousefshokati1-Nov-11 23:32
yousefshokati1-Nov-11 23:32 
AnswerRe: error in adding the reference of my web service in C#.net REPOST Pin
Richard MacCutchan2-Nov-11 0:11
mveRichard MacCutchan2-Nov-11 0:11 
QuestionPlease help with writing to a serial port Pin
turbosupramk31-Nov-11 20:12
turbosupramk31-Nov-11 20:12 
AnswerRe: Please help with writing to a serial port Pin
BobJanova1-Nov-11 23:51
BobJanova1-Nov-11 23:51 
GeneralRe: Please help with writing to a serial port Pin
turbosupramk32-Nov-11 2:10
turbosupramk32-Nov-11 2:10 
AnswerRe: Please help with writing to a serial port Pin
Luc Pattyn2-Nov-11 3:25
sitebuilderLuc Pattyn2-Nov-11 3:25 
GeneralRe: Please help with writing to a serial port Pin
turbosupramk32-Nov-11 3:55
turbosupramk32-Nov-11 3:55 
AnswerRe: Please help with writing to a serial port Pin
Luc Pattyn2-Nov-11 4:22
sitebuilderLuc Pattyn2-Nov-11 4:22 
GeneralRe: Please help with writing to a serial port Pin
turbosupramk32-Nov-11 5:48
turbosupramk32-Nov-11 5:48 
AnswerRe: Please help with writing to a serial port Pin
Luc Pattyn2-Nov-11 6:52
sitebuilderLuc Pattyn2-Nov-11 6:52 
GeneralRe: Please help with writing to a serial port Pin
turbosupramk32-Nov-11 9:00
turbosupramk32-Nov-11 9:00 
AnswerRe: Please help with writing to a serial port Pin
Luc Pattyn2-Nov-11 9:11
sitebuilderLuc Pattyn2-Nov-11 9:11 

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.