Click here to Skip to main content
15,887,812 members
Home / Discussions / C#
   

C#

 
Questionhowto enable button2 if i click button1 ? Pin
cmpeng3417-May-06 1:08
cmpeng3417-May-06 1:08 
AnswerRe: howto enable button2 if i click button1 ? Pin
Naveed Kamboh17-May-06 1:28
Naveed Kamboh17-May-06 1:28 
AnswerRe: howto enable button2 if i click button1 ? Pin
User 665817-May-06 1:32
User 665817-May-06 1:32 
AnswerRe: howto enable button2 if i click button1 ? Pin
stancrm17-May-06 4:00
stancrm17-May-06 4:00 
QuestionDynamic Row Insert Pin
neerajsaini198217-May-06 0:55
neerajsaini198217-May-06 0:55 
AnswerRe: Dynamic Row Insert Pin
Jim Conigliaro17-May-06 1:13
Jim Conigliaro17-May-06 1:13 
QuestionFile as a hyperlink Pin
neerajsaini198217-May-06 0:52
neerajsaini198217-May-06 0:52 
QuestionData Base problem Pin
Ashraj198217-May-06 0:21
Ashraj198217-May-06 0:21 
Hi,
I'm trying to create a new row and add values to the column in the below code.
But it throws exception called "Update unable to find data table 'Table' or Tablemapping 'table' ".

DataSet dset = new DataSet();
SqlCommand dbcommand = new SqlCommand();
dbcommand.CommandText ="select * from DBTable";
dbcommand.Connection = myConnection;
SqlDataAdapter dbDA = new SqlDataAdapter(dbcommand);
dbDA.Fill(dset, "DBTable");
DataTable dbtable = dset.Tables[0];
// dset.Tables.Add(dbtable);
DataRow row;
row = dbtable.NewRow();
row["Name"] = DBfile;
row["Meters"] = IMeter;
dbtable.Rows.Add(row);
dbDA.Update(dset);

any solution? or let me know how to create a new row and assign values to the columns.
AnswerRe: Data Base problem Pin
Naveed Kamboh17-May-06 1:30
Naveed Kamboh17-May-06 1:30 
GeneralRe: Data Base problem Pin
Ashraj198217-May-06 1:40
Ashraj198217-May-06 1:40 
AnswerRe: Data Base problem Pin
Saqib Mehmood17-May-06 18:36
Saqib Mehmood17-May-06 18:36 
Questionextracting frame from video files Pin
Raùl16-May-06 23:10
Raùl16-May-06 23:10 
AnswerRe: extracting frame from video files Pin
Robert Rohde16-May-06 23:44
Robert Rohde16-May-06 23:44 
QuestionHow can i add scroll bar to form Pin
cshivaprasad16-May-06 23:10
cshivaprasad16-May-06 23:10 
AnswerRe: How can i add scroll bar to form Pin
Stefan Troschuetz16-May-06 23:54
Stefan Troschuetz16-May-06 23:54 
Questionhowto do x wait 10 ms then do y wait 100 ms then do z ? Pin
cmpeng3416-May-06 22:56
cmpeng3416-May-06 22:56 
AnswerRe: howto do x wait 10 ms then do y wait 100 ms then do z ? Pin
Robert Rohde16-May-06 23:00
Robert Rohde16-May-06 23:00 
AnswerRe: howto do x wait 10 ms then do y wait 100 ms then do z ? Pin
sathish s16-May-06 23:02
sathish s16-May-06 23:02 
Questiona question about parsing using C# ? Pin
cmpeng3416-May-06 22:16
cmpeng3416-May-06 22:16 
AnswerRe: a question about parsing using C# ? Pin
Nader Elshehabi16-May-06 23:05
Nader Elshehabi16-May-06 23:05 
QuestionHow to load image "name.ico" to Bitmap Stream? Pin
Dima Filipiuk16-May-06 21:57
Dima Filipiuk16-May-06 21:57 
AnswerRe: How to load image "name.ico" to Bitmap Stream? Pin
Robert Rohde16-May-06 23:07
Robert Rohde16-May-06 23:07 
GeneralRe: How to load image "name.ico" to Bitmap Stream? Pin
Dima Filipiuk17-May-06 0:55
Dima Filipiuk17-May-06 0:55 
GeneralRe: How to load image "name.ico" to Bitmap Stream? Pin
Robert Rohde17-May-06 1:43
Robert Rohde17-May-06 1:43 
QuestionGDI+ GraphicsPath HitTest Question...desperate! Pin
b33rdy16-May-06 21:55
b33rdy16-May-06 21:55 

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.