473,405 Members | 2,294 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,405 software developers and data experts.

DataSourceControl with multiple views and data binding order

I have created a custom DataSourceControl to interface to a search engine.
The DataSourceControl exposes multiple views of the same data. The first is
the actual search results. The other views are for information about
parametric data (i.e. this state has 4 hits, that state has 6 hits, etc.)

So far, I have almost everything working perfectly. I had to move the code
to actually execute the search up in the the DataSourceControl. This way,
the first control that is databound will create the search object and
execute it.

Here is where I've run in to a problem. The only view that has the sort
order is the primary data view (that is currently bound to a grid view.)
So, if any of the other views is executed first (which currently is
happening all of the time), there is no sort string.

As a hack, I've made the view that does get the sort string to simply
re-execute the search. However, this means the search is executed twice for
each page. I'd like to figure out a way around this problem.

Is there a way to force the grid view object to bind first?

Any help would be appreciated.
Jan 16 '07 #1
1 1787
Actually, the hack to simply re-run the search with the sort didn't work.
That broke the bindign to all of the parametric views.

I'd really appreciate any help.

"Bill Sexton" <bs*********@nospam.nospamwrote in message
news:O$**************@TK2MSFTNGP03.phx.gbl...
>I have created a custom DataSourceControl to interface to a search engine.
The DataSourceControl exposes multiple views of the same data. The first
is the actual search results. The other views are for information about
parametric data (i.e. this state has 4 hits, that state has 6 hits, etc.)

So far, I have almost everything working perfectly. I had to move the
code to actually execute the search up in the the DataSourceControl. This
way, the first control that is databound will create the search object and
execute it.

Here is where I've run in to a problem. The only view that has the sort
order is the primary data view (that is currently bound to a grid view.)
So, if any of the other views is executed first (which currently is
happening all of the time), there is no sort string.

As a hack, I've made the view that does get the sort string to simply
re-execute the search. However, this means the search is executed twice
for each page. I'd like to figure out a way around this problem.

Is there a way to force the grid view object to bind first?

Any help would be appreciated.

Jan 26 '07 #2

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

Similar topics

0
by: Michael Schoen | last post by:
Hi there, i=B4m actually developing a performance criticial system where I need to index a huge amount of protocoll data. These data are already in a chronological order, so if I push the data...
8
by: Mike | last post by:
Hello, I have a few rather urgent questions that I hope someone can help with (I need to figure this out prior to a meeting tomorrow.) First, a bit of background: The company I work for is...
2
by: Antoine | last post by:
I would like to construct my own list of items in a grid/ table/ item list layout but I have a problem. I want to add a sort of index row based on time, such as there might be blank values. Sure...
5
by: Jeff | last post by:
We are using .Net and the wsdl Utility to generate proxies to consume web services built using the BEA toolset. The data architects on the BEA side create XML schemas with various entities in...
2
by: WT | last post by:
Hello, I am trying to implement a DataSourceControl and I need to simulate the same functionality as the SqlDataSourceControl : being able to set declaratively the select parameters to use when...
1
pbmods
by: pbmods | last post by:
Today I'd like to talk about a new feature introduced in MySQL 5: Views. Views are like snapshots of queries. You can save any query as a view, even complex queries with joins and subqueries,...
0
by: EricLondaits | last post by:
Hi, I have an ASP.NET page with a ListBox that is data bound to a table with a single field (it holds a list of valid IDs). The page also has a textBox into which you can add new valid IDs, one...
2
by: beargrease | last post by:
I'm kind of comfortable with basic joins, but a current project requires a complex query of many tables. The GROUP_CONCAT(DISTINCT ...) function has been very useful as returning my values as comma...
3
by: Peter | last post by:
I have a GridView which is populated by List<ofObjects> Does anyone have example of how to sort the columns of this GridView? I have found examples without DataSourceControl but these use...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.