473,395 Members | 1,649 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

DataView's RowStateFilter

Is there any way to have a DataView, that only shows rows that have been
changed? So no deleted or added rows - just rows that already existed and
are now marked as modified.
Wanted to set the RowStateFilter property, but DataViewRowState enumeration
doesn't seem to have a member to describe this situation? All the ones that
look like they are what I want, actually end up including unwanted rows.

Thanks
Nov 22 '05 #1
2 2317
Filter only the unchanged rows using dataview only? Unless there is a funky
backdoor trick, I don't think so.

But there is always Dataset.GetChanges :)

- Sahil Malik
http://dotnetjunkies.com/weblog/sahilmalik

"Marina" <so*****@nospam.com> wrote in message
news:Ob**************@TK2MSFTNGP10.phx.gbl...
Is there any way to have a DataView, that only shows rows that have been
changed? So no deleted or added rows - just rows that already existed and
are now marked as modified.
Wanted to set the RowStateFilter property, but DataViewRowState
enumeration
doesn't seem to have a member to describe this situation? All the ones
that
look like they are what I want, actually end up including unwanted rows.

Thanks

Nov 22 '05 #2
Yes. The problem with that, is then any changes made to the result from
getchanges has to be merged back in - which is a big pain. I wanted to work
with the original rows, but filter on change type.

"Sahil Malik" <co*****************@nospam.com> wrote in message
news:O5**************@TK2MSFTNGP11.phx.gbl...
Filter only the unchanged rows using dataview only? Unless there is a funky backdoor trick, I don't think so.

But there is always Dataset.GetChanges :)

- Sahil Malik
http://dotnetjunkies.com/weblog/sahilmalik

"Marina" <so*****@nospam.com> wrote in message
news:Ob**************@TK2MSFTNGP10.phx.gbl...
Is there any way to have a DataView, that only shows rows that have been
changed? So no deleted or added rows - just rows that already existed and are now marked as modified.
Wanted to set the RowStateFilter property, but DataViewRowState
enumeration
doesn't seem to have a member to describe this situation? All the ones
that
look like they are what I want, actually end up including unwanted rows.

Thanks


Nov 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ben | last post by:
Dim dv As DataView = New DataView (DataSet11.Tables("InventoryTable")) dv.RowFilter = "ItemAuthor LIKE '" & ItemAuthor.Text & "%'" dv.RowStateFilter = DataViewRowState.ModifiedCurrent dv.Sort...
2
by: Marina | last post by:
Is there any way to have a DataView, that only shows rows that have been changed? So no deleted or added rows - just rows that already existed and are now marked as modified. Wanted to set the...
1
by: iCeCLoW | last post by:
Hi there, I´m using the rowFilter property for filtering the rows in a DataView object. If the filter is set to an inexistent value , that is, after filtering i have 0 rows in the DataView,...
1
by: werk | last post by:
For limiting access to the database to strictly necessary I try to filter the query by using DataView. Thw DataSet ds contains three columns (fields) : (LAND_ID, Landcode, Landnaam) and four...
0
by: Rog | last post by:
Hi I'm having a problem with the above. I get different behaviour depending on what triggers the method call. Let me explain. I have a gridview on a form, with a save button. Both the click...
3
by: Siegfried Heintze | last post by:
I'm displaying information on job postings in various cities. For example, might have a dozen jobs in Atlanta GA and I decide, at run time, that I don't want to see them. How do I set my DataView...
8
by: Dave Hagerich | last post by:
I'm using a DataGrid with a DataSet and I'm trying to filter the data being displayed, using the following code as a test: DataView theView = new DataView(theDataSet.Tables); theView.RowFilter =...
10
by: Roy Lawson | last post by:
Can anyone explain the difference between RowStateFilter and RowFilter properties of the DataView objects in simple terms? I am going through a Transcender practice exam and just when I think I...
1
by: AlexW | last post by:
Hi I am in the process of developing an inventory application in visual basic. I keep coming up against a problem with using the dataview.rowfilter property. Basically what happens is this: -a...
5
by: AlexW | last post by:
Hi I am in the process of developing an inventory application in visual basic. I keep coming up against a problem with using the dataview.rowfilter property. Basically what happens is this: -a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.