Click here to Skip to main content
15,892,005 members
Home / Discussions / C#
   

C#

 
Question.NET Runtime 2.0 Error Reporting Pin
jam198217-Nov-08 2:33
jam198217-Nov-08 2:33 
AnswerRe: .NET Runtime 2.0 Error Reporting Pin
sph3rex17-Nov-08 2:48
sph3rex17-Nov-08 2:48 
GeneralRe: .NET Runtime 2.0 Error Reporting Pin
jam198217-Nov-08 3:38
jam198217-Nov-08 3:38 
QuestionAbout binding files to an C# window application Pin
dilshan_02017-Nov-08 2:21
dilshan_02017-Nov-08 2:21 
AnswerRe: About binding files to an C# window application Pin
SeMartens17-Nov-08 2:32
SeMartens17-Nov-08 2:32 
GeneralRe: About binding files to an C# window application Pin
dilshan_02017-Nov-08 2:56
dilshan_02017-Nov-08 2:56 
GeneralRe: About binding files to an C# window application Pin
SeMartens17-Nov-08 4:31
SeMartens17-Nov-08 4:31 
Questiondatarow empty Pin
Melanie Booysen17-Nov-08 1:27
Melanie Booysen17-Nov-08 1:27 
i have the following code - what it should do is to retrieve the rows that have the same id but the content within the other columns are not the same.

sqlquery = "select * from " + Table2 + " where " + txt_comkey_tbl2.Text + " in (select " + txt_comkey_tbl1.Text + " from " + Table1 + ")";

dbCmd = new OleDbCommand();
dbCmd.Connection = dbConn;
dbCmd.CommandText = sqlquery;
dbCmd.CommandType = CommandType.Text;
db1Reader = dbCmd.ExecuteReader();

dp = new DataSet();
db1table = dp.Tables.Add(sqlquery);

for (j = 0; j < dbReader.FieldCount; j++)
db1table.Columns.Add(db1Reader.GetName(j), db1Reader.GetFieldType(j));

foreach (DataRow dr in db1table.Rows)
{
for (int i = 0; i < db1table.Rows.Count; i++)
{
if (dr["Name"].ToString() == db1table.Rows[i]["Name"].ToString())
{
if (dr["Value"].ToString() != db1table.Rows[i]["Value"].ToString())
{
// select the row from the database and display in the grid...
}
}
}
}

however when i run the code i don't get any values on the datarow but execute the same sqlquery in the database two rows are returned. is there perharps something that is not done correctly?????
AnswerRe: datarow empty Pin
SeMartens17-Nov-08 2:13
SeMartens17-Nov-08 2:13 
AnswerRe: datarow empty Pin
Andrew Rissing17-Nov-08 4:20
Andrew Rissing17-Nov-08 4:20 
QuestionConcat objects Pin
Scalee17-Nov-08 1:16
Scalee17-Nov-08 1:16 
AnswerRe: Concat objects Pin
Simon P Stevens17-Nov-08 1:47
Simon P Stevens17-Nov-08 1:47 
GeneralRe: Concat objects Pin
Scalee17-Nov-08 2:29
Scalee17-Nov-08 2:29 
QuestionDisplay image in Image control or Bitmap Pin
B8717-Nov-08 0:46
B8717-Nov-08 0:46 
AnswerRe: Display image in Image control or Bitmap Pin
Giorgi Dalakishvili17-Nov-08 0:57
mentorGiorgi Dalakishvili17-Nov-08 0:57 
GeneralRe: Display image in Image control or Bitmap Pin
B8717-Nov-08 1:08
B8717-Nov-08 1:08 
GeneralRe: Display image in Image control or Bitmap Pin
Giorgi Dalakishvili17-Nov-08 1:11
mentorGiorgi Dalakishvili17-Nov-08 1:11 
GeneralRe: Display image in Image control or Bitmap Pin
B8717-Nov-08 1:40
B8717-Nov-08 1:40 
GeneralRe: Display image in Image control or Bitmap Pin
nelsonpaixao17-Nov-08 12:50
nelsonpaixao17-Nov-08 12:50 
QuestionHow to write and read the data from USB port within the same application? Pin
Shivarudrayya H17-Nov-08 0:39
Shivarudrayya H17-Nov-08 0:39 
AnswerRe: How to write and read the data from USB port within the same application? Pin
Scalee17-Nov-08 1:30
Scalee17-Nov-08 1:30 
QuestionAdd new control from one Form to another Form but how? Pin
zeeShan anSari16-Nov-08 23:47
zeeShan anSari16-Nov-08 23:47 
AnswerRe: Add new control from one Form to another Form but how? Pin
Simon P Stevens16-Nov-08 23:54
Simon P Stevens16-Nov-08 23:54 
GeneralRe: Add new control from one Form to another Form but how? Pin
zeeShan anSari17-Nov-08 0:05
zeeShan anSari17-Nov-08 0:05 
GeneralRe: Add new control from one Form to another Form but how? Pin
Simon P Stevens17-Nov-08 0:14
Simon P Stevens17-Nov-08 0:14 

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.