PC Review


Reply
Thread Tools Rate Thread

DataView Constructor RowFilter Doesn't Work?

 
 
Spam Catcher
Guest
Posts: n/a
 
      24th Jan 2008
Hi all,

I'm assigning my RowFilter like:

Dim AlbumView As New DataView(AlbumDataSet.Tables("album"), "owner = " &
User.UserId, Nothing, DataViewRowState.Unchanged)


However, this works:

Dim AlbumView As New DataView(AlbumDataSet.Tables("album"))
AlbumView.RowFilter = "owner = " & User.UserId

So my question is ... why doesn't setting the RowFilter in the constructor
work?

--
(E-Mail Removed) (Do not e-mail)
 
Reply With Quote
 
 
 
 
Spam Catcher
Guest
Posts: n/a
 
      24th Jan 2008
Spam Catcher <(E-Mail Removed)> wrote in
news:Xns9A2F6AF40F021usenethoneypotrogers@127.0.0.1:

> Dim AlbumView As New DataView(AlbumDataSet.Tables("album"), "owner = " &
> User.UserId, Nothing, DataViewRowState.Unchanged)


I think I found the issue:

Dim AlbumView As New DataView(AlbumDataSet.Tables("album"), "owner = " &
User.UserId, Nothing, DataViewRowState.CurrentRows)

DataviewRowState must be set to CurrentRows not none, unchanged, etc.

--
(E-Mail Removed) (Do not e-mail)
 
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
dataview rowfilter doent work karthey@gmail.com Microsoft C# .NET 8 19th Mar 2007 06:29 PM
= operator doesn't work when matched against DateTime value in RowFilter mlawry@gmail.com Microsoft Dot NET Framework 4 16th Jan 2007 04:38 AM
Dataview RowFilter Rohit Microsoft ADO .NET 1 20th Sep 2005 07:31 AM
DataView RowFilter does not work with mulitple conditions Mike Kline Microsoft ADO .NET 2 3rd Feb 2005 01:44 AM
DataView RowFilter Mike Microsoft ADO .NET 1 27th Jul 2004 11:27 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:23 PM.