Click here to Skip to main content
15,900,378 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: windows forms datagridview Pin
kiran@p2softech13-Nov-07 19:45
kiran@p2softech13-Nov-07 19:45 
GeneralRe: windows forms datagridview Pin
Christian Graus13-Nov-07 19:55
protectorChristian Graus13-Nov-07 19:55 
QuestionFill text fields on web page Pin
mcnewsxp13-Nov-07 4:07
mcnewsxp13-Nov-07 4:07 
QuestionHow to join server program to my windows form? Pin
maglev_tgv12-Nov-07 19:21
maglev_tgv12-Nov-07 19:21 
AnswerRe: How to join server program to my windows form? Pin
Rajasekharan Vengalil12-Nov-07 19:53
Rajasekharan Vengalil12-Nov-07 19:53 
QuestionHow to mount any file? Pin
bhaskar jatav12-Nov-07 17:38
bhaskar jatav12-Nov-07 17:38 
AnswerRe: How to mount any file? Pin
Christian Graus12-Nov-07 20:03
protectorChristian Graus12-Nov-07 20:03 
QuestionHelp!!!!!! TableAdapter Or BindingSource ? Pin
saltcode12-Nov-07 9:23
professionalsaltcode12-Nov-07 9:23 
Hi,
my question is thus:
i created a master detail entry form, i have to insert the master record before the detail record.
Cry | :(( the issue is the master does not insert
here is the code:
private bool Save()<br />
        {<br />
            bool saved = false;<br />
<br />
            Validate();<br />
            fACTORY_PURCHASEBindingSource.EndEdit();<br />
            fACTORY_ITEMSBindingSource.EndEdit();<br />
<br />
            FactoryDataSet.FACTORY_PURCHASEDataTable newInvoice =<br />
                (FactoryDataSet.FACTORY_PURCHASEDataTable)<br />
                factoryDataSet.FACTORY_PURCHASE.GetChanges(DataRowState.Added);<br />
            FactoryDataSet.FACTORY_ITEMSDataTable newItems =<br />
                (FactoryDataSet.FACTORY_ITEMSDataTable)<br />
                factoryDataSet.FACTORY_ITEMS.GetChanges(DataRowState.Added);<br />
<br />
            FactoryDataSet.FACTORY_PURCHASEDataTable deleteInvoice =<br />
                (FactoryDataSet.FACTORY_PURCHASEDataTable)<br />
                factoryDataSet.FACTORY_PURCHASE.GetChanges(DataRowState.Deleted);<br />
            FactoryDataSet.FACTORY_ITEMSDataTable deleteItems =<br />
                (FactoryDataSet.FACTORY_ITEMSDataTable) factoryDataSet.FACTORY_ITEMS.GetChanges(DataRowState.Deleted);<br />
<br />
            try<br />
            {<br />
                if (newInvoice != null || newItems != null)<br />
                {<br />
                    fACTORY_PURCHASETableAdapter.Update(newInvoice);<br />
                    fACTORY_ITEMSTableAdapter.Update(newItems);<br />
                }<br />
<br />
                if(deleteInvoice != null || deleteItems != null)<br />
                {<br />
                    fACTORY_ITEMSTableAdapter.Update(deleteItems);<br />
                    fACTORY_PURCHASETableAdapter.Update(deleteInvoice);<br />
                }<br />
<br />
                factoryDataSet.AcceptChanges();<br />
                saved = true;<br />
<br />
            }<br />
            catch (Exception ex)<br />
            {<br />
                MessageBox.Show(ex.Message);<br />
            }<br />
<br />
            return saved;<br />
        }

QuestionDocking a window Pin
erarocks11-Nov-07 21:12
erarocks11-Nov-07 21:12 
AnswerRe: Docking a window Pin
Rajasekharan Vengalil12-Nov-07 19:47
Rajasekharan Vengalil12-Nov-07 19:47 
GeneralRe: Docking a window Pin
LongRange.Shooter1-Feb-08 10:21
LongRange.Shooter1-Feb-08 10:21 
QuestionSimple Invoice Capture: To databind or not to databind? Pin
Brady Kelly10-Nov-07 21:09
Brady Kelly10-Nov-07 21:09 
AnswerRe: Simple Invoice Capture: To databind or not to databind? Pin
Rajasekharan Vengalil12-Nov-07 19:46
Rajasekharan Vengalil12-Nov-07 19:46 
GeneralChecking for a Key Sequence Pin
Brady Kelly10-Nov-07 3:51
Brady Kelly10-Nov-07 3:51 
GeneralRe: Checking for a Key Sequence Pin
Trollslayer10-Nov-07 5:28
mentorTrollslayer10-Nov-07 5:28 
GeneralRe: Checking for a Key Sequence Pin
Brady Kelly10-Nov-07 5:36
Brady Kelly10-Nov-07 5:36 
GeneralRe: Checking for a Key Sequence Pin
Trollslayer10-Nov-07 5:55
mentorTrollslayer10-Nov-07 5:55 
GeneralRe: Checking for a Key Sequence Pin
Brady Kelly10-Nov-07 6:04
Brady Kelly10-Nov-07 6:04 
GeneralRe: Checking for a Key Sequence Pin
Trollslayer10-Nov-07 6:28
mentorTrollslayer10-Nov-07 6:28 
GeneralRe: Checking for a Key Sequence Pin
Brady Kelly10-Nov-07 19:48
Brady Kelly10-Nov-07 19:48 
GeneralRe: Checking for a Key Sequence Pin
Luc Pattyn10-Nov-07 14:24
sitebuilderLuc Pattyn10-Nov-07 14:24 
GeneralRe: Checking for a Key Sequence Pin
Brady Kelly10-Nov-07 19:53
Brady Kelly10-Nov-07 19:53 
GeneralRe: Checking for a Key Sequence Pin
Luc Pattyn11-Nov-07 3:34
sitebuilderLuc Pattyn11-Nov-07 3:34 
GeneralRe: Checking for a Key Sequence Pin
Brady Kelly11-Nov-07 3:39
Brady Kelly11-Nov-07 3:39 
QuestionMater / Detail Datagridview Pin
Mr. Candyman7-Nov-07 8:41
Mr. Candyman7-Nov-07 8:41 

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.