Article View: borland.public.csharpbuilder.language.csharp
Article #475Re: TabControls & Saving to a Database
From: Joanna Carter (TeamB)
Date: Tue, 28 Dec 2004 09:50
Date: Tue, 28 Dec 2004 09:50
23 lines
1767 bytes
1767 bytes
"RayG" <ray@mweb.co.za> a οΏ½crit dans le message de news: 41d11e3f$1@newsgroups.borland.com... > Is there anyway that this can be changed or should I loop through the tab > pages and set tabcontrols.SelectedTab each page to initialise the data... The problem is not with the data-aware controls, which IMO are badly designed anyway; the real answer is to separate the logic that does the creating of the SQL from the UI. When you create a new record in the dataset, many of the fields are set to null rahter than default values. Why don't you cycle through the dataset before the edits are shown and set the default values in code ? Then, whether the edits are used or not, the fields are already primed correctly. Joanna -- Joanna Carter (TeamB) Consultant Software Engineer TeamBUG support for UK-BUG TeamMM support for ModelMaker
Technical Details
Message-ID:
<41d12c6e@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<41d11e3f$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,507a33c483242503 X-Google-Attributes: gid1efe35,public X-Google-Language: ENGLISH,ASCII From: "Joanna Carter \(TeamB\)" <joanna@nospam.co.uk> Newsgroups: borland.public.csharpbuilder.language.csharp References: <41d11e3f$1@newsgroups.borland.com> Subject: Re: TabControls & Saving to a Database Date: Tue, 28 Dec 2004 09:50:46 -0000 Lines: 25 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 81.152.49.87 Message-ID: <41d12c6e@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1104227438 81.152.49.87 (28 Dec 2004 01:50:38 -0800) X-Authenticated-User: jcarter Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail