Click here to Skip to main content
15,913,453 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to know the .net version of a windows application just looking the code? Pin
Dave Kreskowiak6-Dec-08 4:17
mveDave Kreskowiak6-Dec-08 4:17 
GeneralRe: How to know the .net version of a windows application just looking the code? Pin
Krushna Sahu7-Dec-08 18:33
Krushna Sahu7-Dec-08 18:33 
GeneralRe: How to know the .net version of a windows application just looking the code? Pin
Dave Kreskowiak8-Dec-08 2:15
mveDave Kreskowiak8-Dec-08 2:15 
GeneralRe: How to know the .net version of a windows application just looking the code? Pin
Krushna Sahu1-Jan-09 19:18
Krushna Sahu1-Jan-09 19:18 
Questioncombo box Pin
kirandilip5-Dec-08 19:05
kirandilip5-Dec-08 19:05 
AnswerRe: combo box Pin
beatles16925-Dec-08 20:52
beatles16925-Dec-08 20:52 
GeneralRe: combo box Pin
nelsonpaixao7-Dec-08 14:52
nelsonpaixao7-Dec-08 14:52 
QuestionForEach Loop Pin
Jon Stroh5-Dec-08 18:51
Jon Stroh5-Dec-08 18:51 
Can anyone tell me how I can use a foreach loop to change values in two columns of a table.

I tried this ( didn't know any other way) but it only saves changes the first record in the table for some reason. When I trace through my breakpoints it seems to edit each record but only saves changes to the first record.
Thank You very much Jon

FBasic8DataSet.LineItemInsertDataTable dt = new FBasic8DataSet.LineItemInsertDataTable();
                    FBasic8DataSetTableAdapters.LineItemInsertTableAdapter ta = new FarriersBasic8.FBasic8DataSetTableAdapters.LineItemInsertTableAdapter();

                    fBasic8DataSet1.EnforceConstraints = false;
                    this.lineItemInsertTableAdapter.Fill(fBasic8DataSet1.LineItemInsert);                   
                    ta.Fill(dt);
                    foreach(DataRow row in dt.Rows)
                       {
                        
                        Guid recnum;
                        recnum = System.Guid.NewGuid();
                        DataRowView
                        DataRowView currentLineItem = bsLineItemInsert.Current as DataRowView;
                        FBasic8DataSet.LineItemInsertRow currentLineRow = currentLineItem.Row as FBasic8DataSet.LineItemInsertRow;
                        recnum = System.Guid.NewGuid();
                        currentLineRow.RecNum = recnum;
                        currentLineRow.Type =Convert.ToString('P');
                       
        

                    }
                    fBasic8DataSet1.EnforceConstraints = false;
                           

                            try
                            {
                                this.Validate();
                                bsLineItemInsert.EndEdit();
                                lineItemInsertTableAdapter.Update(this.fBasic8DataSet1.LineItemInsert);
                            }
                            catch(System.Data.DBConcurrencyException dbce)
                            {
                                MessageBox.Show(dbce.Message.ToString(), "Error", MessageBoxButtons.OK,MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1);

                            }

AnswerRe: ForEach Loop Pin
Christian Graus5-Dec-08 22:36
protectorChristian Graus5-Dec-08 22:36 
GeneralRe: ForEach Loop Pin
Jon Stroh6-Dec-08 4:19
Jon Stroh6-Dec-08 4:19 
AnswerRe: ForEach Loop Pin
Mark Salsbery6-Dec-08 7:17
Mark Salsbery6-Dec-08 7:17 
QuestionRemoting a Form? Pin
Snixtor5-Dec-08 16:09
Snixtor5-Dec-08 16:09 
QuestionAccess MS Access Pin
picasso25-Dec-08 14:48
picasso25-Dec-08 14:48 
AnswerRe: Access MS Access Pin
picasso25-Dec-08 18:31
picasso25-Dec-08 18:31 
QuestionAbout trojans, i worried now!!! Pin
nelsonpaixao5-Dec-08 14:14
nelsonpaixao5-Dec-08 14:14 
AnswerRe: About trojans, i worried now!!! Pin
Christian Graus5-Dec-08 14:57
protectorChristian Graus5-Dec-08 14:57 
AnswerRe: About trojans, i worried now!!! Pin
beatles16926-Dec-08 3:24
beatles16926-Dec-08 3:24 
Questioncoding for server controls Pin
samta khobragade5-Dec-08 13:18
samta khobragade5-Dec-08 13:18 
AnswerRe: coding for server controls Pin
Christian Graus5-Dec-08 14:57
protectorChristian Graus5-Dec-08 14:57 
QuestionRuntime construction of a constructed type [solved] [modified] Pin
PIEBALDconsult5-Dec-08 13:03
mvePIEBALDconsult5-Dec-08 13:03 
AnswerRe: Runtime construction of a constructed type Pin
Luc Pattyn5-Dec-08 18:43
sitebuilderLuc Pattyn5-Dec-08 18:43 
GeneralRe: Runtime construction of a constructed type Pin
PIEBALDconsult5-Dec-08 18:48
mvePIEBALDconsult5-Dec-08 18:48 
QuestionApply dataset changes to excel file Pin
emilio_ts5-Dec-08 12:20
emilio_ts5-Dec-08 12:20 
AnswerRe: Apply dataset changes to excel file Pin
Christian Graus5-Dec-08 15:00
protectorChristian Graus5-Dec-08 15:00 
QuestionTextBox Overwrite Text Pin
asquaredtech5-Dec-08 11:30
asquaredtech5-Dec-08 11:30 

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.