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

Databinding and hierarchical controls

I cant seem to find info online about this so thought id ask..

I have an asp.net 2.0 page that has:

1. an infragistics calendar control
2. a DDL that has an ODS with a param pulled from the calendar
3. a gridview with ODS that binds a param from the DDL key

the problem im having is, on chanigng the infragistics calendar, the
page seems to databind the gridview first, and then the DDL... but
obviously this leads to problems since the grid is depending on the DDL
for an input param.

I can make it work by calling a DataBind() on the controls in quest,
but this seems to cause multiple binds to be performed... works, but
definately not efficient.

Is there a way i can force this to perform automatic binding in the
correct sequence?

Thanks

Sep 12 '06 #1
1 1514
Boomhauer,

While I think that the automatic databinding features of .NET are pretty
neat and I use them on occasion, when you get down to needing logic like you
are utilizing I think it's better to do the databinding yourself in the code
behind.

I would suggest that the most efficient way for you to do this will be to
specifically databind each control based on events fired by the previous
controls. This way you'll be certain to have the most efficient code
possible.

Or, in other words, no, I don't know of a way to use the auto-binding and
set which control is bound first... :)
Regards,

--
S. Justin Gengo
Web Developer / Programmer

Free code library:
http://www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
<bo*******@gmail.comwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
>I cant seem to find info online about this so thought id ask..

I have an asp.net 2.0 page that has:

1. an infragistics calendar control
2. a DDL that has an ODS with a param pulled from the calendar
3. a gridview with ODS that binds a param from the DDL key

the problem im having is, on chanigng the infragistics calendar, the
page seems to databind the gridview first, and then the DDL... but
obviously this leads to problems since the grid is depending on the DDL
for an input param.

I can make it work by calling a DataBind() on the controls in quest,
but this seems to cause multiple binds to be performed... works, but
definately not efficient.

Is there a way i can force this to perform automatic binding in the
correct sequence?

Thanks

Sep 12 '06 #2

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

Similar topics

1
by: Big Dave | last post by:
Good morning. This group has been a great help so far, and it is much appreciated. Here's my new question. I want to be able to create a datagrid at runtime, which will have template columns...
3
by: Kevin Swanson | last post by:
I'm writing what should be a very simple app against an Oracle database. The app has a number of user controls, any one of which is loaded into a main display page using the loadControl method,...
6
by: John Bailey | last post by:
I have a web page with a formview, and a multiview in the formview. When I databind the values inside the multiview views, there is no option for two-way databinding. The form populates fine, but...
3
by: John Bailey | last post by:
When I first built a few web pages in ASP .Net 2.0, I thought it was great. The formview and detailview contorls would automatically layout the controls for you, the update methods were...
0
by: Michael | last post by:
Hi everyone, I'm working on cutting down code in a form I'm working on, and decided to bind the controls to a dataset. I have two problems now. I have a couple datasets that I'm binding to. 1. I...
0
by: Simon Gregory | last post by:
I am currently attempting to figure out how the new databinding stucture works in ASP.NET 2.0 after working with v1.0 & v1.1 for several years. It seems that if you wish to do set up databinding...
7
by: Vlado Jasovic | last post by:
Hello, I'm using typed dataset for databinding to windows controls and I'm having some problems. I'm trying to move all business logic to datatable column_changing events and the problem that...
1
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post by:
Hello to all, I want to know if DataBinding in asp.net 2,0 is better than to fill up the values of the controls of the following form: this.miControlTextBox.Text = valorParaControlTextbox; ...
4
by: Marco Pais | last post by:
Hi there. I am trying to find th best way (best UI control) to present hierarchical data, nested tables. For example, I have a Employees table (id, name) and EmployeesSales (id, idEmp,...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.