473,382 Members | 1,665 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,382 software developers and data experts.

How to filter DataSource?

I have a DataSource that I want to only apply (filter) a subset of the items
to a GridView. Can I do this?

Amil
Aug 22 '06 #1
3 6421
Theres a reasonable write up here on filtering.

http://www.akadia.com/services/dotnet_filter_sort.html

Regards

John Timney (MVP)

"Amil Hanish" <am********@hotmail.comwrote in message
news:et****************@TK2MSFTNGP04.phx.gbl...
>I have a DataSource that I want to only apply (filter) a subset of the
items to a GridView. Can I do this?

Amil

Aug 22 '06 #2
This really isn't want I want to do. Assume I have a datasource that
contains 100 rows. I want to apply 25 rows to a gridview A on the page.
Then on the same page, I want to apply some other rows to gridview B. Etc.
Amil

"John Timney (MVP)" <x_****@timney.eclipse.co.ukwrote in message
news:Uu******************************@eclipse.net. uk...
Theres a reasonable write up here on filtering.

http://www.akadia.com/services/dotnet_filter_sort.html

Regards

John Timney (MVP)

"Amil Hanish" <am********@hotmail.comwrote in message
news:et****************@TK2MSFTNGP04.phx.gbl...
>>I have a DataSource that I want to only apply (filter) a subset of the
items to a GridView. Can I do this?

Amil


Aug 22 '06 #3
Lookup custom paging

http://aspnet.4guysfromrolla.com/articles/031506-1.aspx

Regards

John Timney (MVP)

"Amil Hanish" <am********@hotmail.comwrote in message
news:%2******************@TK2MSFTNGP02.phx.gbl...
This really isn't want I want to do. Assume I have a datasource that
contains 100 rows. I want to apply 25 rows to a gridview A on the page.
Then on the same page, I want to apply some other rows to gridview B.
Etc.
Amil

"John Timney (MVP)" <x_****@timney.eclipse.co.ukwrote in message
news:Uu******************************@eclipse.net. uk...
>Theres a reasonable write up here on filtering.

http://www.akadia.com/services/dotnet_filter_sort.html

Regards

John Timney (MVP)

"Amil Hanish" <am********@hotmail.comwrote in message
news:et****************@TK2MSFTNGP04.phx.gbl...
>>>I have a DataSource that I want to only apply (filter) a subset of the
items to a GridView. Can I do this?

Amil



Aug 22 '06 #4

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

Similar topics

3
by: Vern | last post by:
The following code retrieves data into a dataset, and then creates a dataview with a filter. This dataview is then attached to a combobox. When the effective date changes, I would like to see the...
3
by: Pedor | last post by:
I want to display only data in the datagrid for specific records having a common or identical data in a column. How do you do this programmaticaly using combination of the datagrid object,...
7
by: Mike | last post by:
I'm trying to filter a dataset on items that are being passed in via a querystring. the string looks like this. chevy|ford|BMW| on the information page i split the string such as...
2
by: AAJ | last post by:
I know this sounds nuts, but how do I remove the following filter from a Object Datasource that looks at my business layer... ODSDefaultUserProfiles.FilterExpression = "AllowedWebPage = '" +...
3
by: amir | last post by:
How can I filter again my previous filtered records, I mean when I filter an entire I can filter again and again the filtered data. Many thanks for your help. Amir
9
by: dee | last post by:
I'd like to filter by the following criteria: left(LeadDisposition,3) = "Sit" AND Appt_Date = Text767 I have no idea how to do this. Appreciate help.
5
by: shapper | last post by:
Hello, I have a GridView and I need to display only the records which field in datasource named "visible" is set to true. How can I do this? Thanks, Miguel
2
by: Paul | last post by:
Hi all, I have a DataTable and a DataGridView that is using it as a datasource. I'm using the DataTable.Select method and I can find some rows. Is it now possible, somehow to use the result of the...
2
by: A. Peters | last post by:
Hello! If I use a Filter on a Datasource, does he made a new Query with the constraint of my definend WHERE clause or does it retrieve all Data and then filter the content? If that isnt the right...
0
by: newcooler | last post by:
I have a junction table for instance 1 service can have many contacts - using a composite key junction table. what i want to do is to filter all the contacts that belong to the service using the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...

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.