intercept data adapter fill method events

Posted on 2006-04-21
Last Modified: 2006-11-18
Hi all,

Is there anyway to intercept the fill method events when filling a dataset?
I wish to analyze data as it is going into a dataset's datatable (or tables) to process the information.
Currently, the only way I know how to do this is to parse the datatables again to look for values and modify (e.g. null checking) them OR by using a SQLdatareader and looping as each row is being filled.
The dataset, while convenient, is a bit too slow when having to re-loop through the records afterwards (ie going through it twice is a waste of time) to make changes that could have been made while the data is loading.
Is this possible? (in .Net 1.1)

Question by:simplyamazing
    LVL 96

    Accepted Solution

    Would it be possible to process that through the database system (SQL statements) instead?


    Author Comment

    Actually, yes, this is already what I do now for any new DBs created (using SQL's "ISNULL" for null date fields in SPs and CASTing timestamps to bigints, etc.).  My question is probably moot since I could never use the update or insert via a dataset regardless.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now