Hi

asp.net Albania
  • 11 years ago

    Hello, I'm writing an website with aspx and sqlserver, and I'm having a problem with filtering data. I'm using dataview and then dataview.rowfilter but nothing happen.

     Could anybody help me.

     Thank You in advance

  • 11 years ago

    I think your problem may be in how you are returning the rows in your dataview. I worked out a routine from a dataview, and the returned data from the dataview depends upon what kind of data you are returning; for a newly filled dataview you should set the fourth overload parameter to DataRowViewState.CurrentRows; and any changes to this dataview, you will then be able to access the other enumeration members from separate methods. If all else fails, check whether your rowFilter is actually returning rows from the datasource.

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil.” - Donald Knuth