PC Review


Reply
Thread Tools Rate Thread

How to check if filled ?

 
 
=?Utf-8?B?SmFyb2Q=?=
Guest
Posts: n/a
 
      14th Jun 2005
Hey
I need to check if row in my typed dataset is filled or not. I create a new
row, and data to this row will be sent from datagrid. Then user click save
button. But this button will be disabled if the row isn't properly filled.
But when accessing a filed that wasn't filled yet I have an error. So please
tell me how can I check if columns in row are filled or not.
Jarod
 
Reply With Quote
 
 
 
 
Val Mazur \(MVP\)
Guest
Posts: n/a
 
      15th Jun 2005
Hi,

You need explicitly check each required column to see if you have a value
there. Basically it is a loop. You could also catch RowChanging event of the
DataTable and check required values there. Everything depends on design of
your application

--
Val Mazur
Microsoft MVP

http://xport.mvps.org



"Jarod" <(E-Mail Removed)> wrote in message
news:A09BF979-A1CC-48BF-9259-(E-Mail Removed)...
> Hey
> I need to check if row in my typed dataset is filled or not. I create a
> new
> row, and data to this row will be sent from datagrid. Then user click save
> button. But this button will be disabled if the row isn't properly filled.
> But when accessing a filed that wasn't filled yet I have an error. So
> please
> tell me how can I check if columns in row are filled or not.
> Jarod



 
Reply With Quote
 
=?Utf-8?B?SmFyb2Q=?=
Guest
Posts: n/a
 
      15th Jun 2005
> You need explicitly check each required column to see if you have a value
> there. Basically it is a loop. You could also catch RowChanging event of the
> DataTable and check required values there. Everything depends on design of
> your application


So let's say I have typed dataset and I created a new typed row:

typedrow.myCustomUserColumn <- when I invoke this I get an error because
there is nothing in this column how to check if there is anything ?
Jarod
 
Reply With Quote
 
Rogas69
Guest
Posts: n/a
 
      15th Jun 2005
Jarod you should create row AFTER user fills form fields. You have to
validate form fields as well to exclude potential invalid values for given
fields. Then you create row and you set column values to relevant form
control values.

Peter

> So let's say I have typed dataset and I created a new typed row:
>
> typedrow.myCustomUserColumn <- when I invoke this I get an error because
> there is nothing in this column how to check if there is anything ?
> Jarod



 
Reply With Quote
 
=?Utf-8?B?SmFyb2Q=?=
Guest
Posts: n/a
 
      15th Jun 2005
> Jarod you should create row AFTER user fills form fields. You have to
> validate form fields as well to exclude potential invalid values for given
> fields. Then you create row and you set column values to relevant form
> control values.
>


I know, but there is a little problem user interface is divided into a few
pages ( it's ASP.Net application ) so user needs to fill up a few pages and
then row is saved. I keep row in a Session["newRow"] , maybe you have better
ideas ?
Jarod
 
Reply With Quote
 
Rogas69
Guest
Posts: n/a
 
      15th Jun 2005
Create some temporary structure which will hold values entered by user. When
user ends his work, you validate data and create the row.

HTH

Peter

"Jarod" <(E-Mail Removed)> wrote in message
news:A9F4C3E0-7251-42D2-8EED-(E-Mail Removed)...
>> Jarod you should create row AFTER user fills form fields. You have to
>> validate form fields as well to exclude potential invalid values for
>> given
>> fields. Then you create row and you set column values to relevant form
>> control values.
>>

>
> I know, but there is a little problem user interface is divided into a few
> pages ( it's ASP.Net application ) so user needs to fill up a few pages
> and
> then row is saved. I keep row in a Session["newRow"] , maybe you have
> better
> ideas ?
> Jarod



 
Reply With Quote
 
Sahil Malik [MVP]
Guest
Posts: n/a
 
      15th Jun 2005
Explain "Filled".

- Sahil Malik [MVP]
Upcoming ADO.NET 2.0 book - http://tinyurl.com/9bync
----------------------------------------------------------------------------
---------------

"Jarod" <(E-Mail Removed)> wrote in message
news:A09BF979-A1CC-48BF-9259-(E-Mail Removed)...
> Hey
> I need to check if row in my typed dataset is filled or not. I create a

new
> row, and data to this row will be sent from datagrid. Then user click save
> button. But this button will be disabled if the row isn't properly filled.
> But when accessing a filed that wasn't filled yet I have an error. So

please
> tell me how can I check if columns in row are filled or not.
> Jarod



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
text area pre filled if check box is on ryddogop@hotmail.com Microsoft Access Forms 3 6th Apr 2007 08:51 PM
Check cell filled before close Martin Los Microsoft Excel Misc 1 26th Mar 2004 02:24 AM
HDD Filled after Error Check Groundhog \(DRU\) Windows XP Hardware 4 5th Feb 2004 06:34 PM
Check that certain fields are filled in netadmin Microsoft Access Form Coding 3 23rd Jan 2004 09:36 PM
Check all lsitbox entries are filled Stuart Microsoft Excel Programming 2 25th Sep 2003 05:37 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:29 AM.