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

binding a datagrid to a listbox

hi oliver thanks for your help i kinda figured that out minutes
afterwards...but what i am actually trying to do is this:

i have a listbox control that gets its data from another listbox (hence gets
a subset by selecting from the first list box) and i have a datagrid which
has a template column and a bound column, i want to bind the bound column to
this second listbox and then its template column implements a dropdownlist
for every bound column item, now this dropdownlist (in the template column of
the datagrid) i want to bind it to a dataset's datatable
Sep 4 '05 #1
4 1710
Shadow,

Please stay in the same message thread, helping you in this way becomes
completely impossible because we don't know what answers you have already.

Cor
Sep 4 '05 #2
sorry cor i was advised to go to a more specific thread which was asp.net
framework.datagridcontrol but i could not find it

"Cor Ligthert [MVP]" wrote:
Shadow,

Please stay in the same message thread, helping you in this way becomes
completely impossible because we don't know what answers you have already.

Cor

Sep 4 '05 #3
hi Cor the link you sent me does not seem to work, i am getting a page cannot
be displayed error

"ShadowsOfTheBeast" wrote:
sorry cor i was advised to go to a more specific thread which was asp.net
framework.datagridcontrol but i could not find it

"Cor Ligthert [MVP]" wrote:
Shadow,

Please stay in the same message thread, helping you in this way becomes
completely impossible because we don't know what answers you have already.

Cor

Sep 4 '05 #4
Hi can anyone help with my original message
i am trying bind datagrid webserver control to a listbox (one of its bound
columns) and i also have a template column within the datagrid that has a
dropdown list control which i want to bind to a dataset...now normally
binding a drodown list control to a data set is easy but using it within the
datagrid

<asp:Datagrid>
<Bound column DataTextField="MyListBox.Items"
DataValueField="MyListBox.Items" >
<Bound column>

<template column>
<itemtemplate>
<asp:dropddownlist id="ddl1"
DataTextField="<%#(DataBinder.Eva(Container.DataIt em,"myDataSet" ) %>" />
<itemtemplate>
<template column>
<asp:Datagrid>

why does this not work? both the bound and the template column controls?
can any one please shed some light on what i am doing wrong????
"ShadowsOfTheBeast" wrote:
sorry cor i was advised to go to a more specific thread which was asp.net
framework.datagridcontrol but i could not find it

"Cor Ligthert [MVP]" wrote:
Shadow,

Please stay in the same message thread, helping you in this way becomes
completely impossible because we don't know what answers you have already.

Cor

Sep 4 '05 #5

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

Similar topics

3
by: me | last post by:
I've included a picture below to show what I am trying to accomplish. It is best to copy/paste into notepad to get the spacing correct. I have a dataset that contains 3 tables. Two of the tables...
10
by: ShadowsOfTheBeast | last post by:
hi all i am trying to bind data to my datagrid from a listbox which i think it should work but an error is coming up saying i have to bind to a datasource that implements the Inumerable or...
1
by: Sachin Kuchinad | last post by:
Hi All I am using .NET Framework version 1.0.3705 to build a website. Now i have made a webform and on that i have added a dropdown to the page I bind this listbox to a datareader . This does...
8
by: Richard L Rosenheim | last post by:
I have a dataset containing a parent table related to a child table. The child table contains an ID field (which is configured as autonumber in the datatable), the ID of the parent, plus some...
1
by: Aaron Smith | last post by:
How do you get the System.Windows.Forms.binding for a field that is bound to a DataGrid Control? With textboxes, it's just the bindings item property, but I can't seem to find one that works for a...
4
by: ShadowsOfTheBeast | last post by:
hi oliver thanks for your help i kinda figured that out minutes afterwards...but what i am actually trying to do is this: i have a listbox control that gets its data from another listbox (hence...
3
by: Peter | last post by:
OK, so in addition to the problem I mentioned before (c.f. "Data Binding to Textbox"), I realized that my comboboxes are not really bound to the internal data set. They are just set to manually...
4
by: Arch Stanton | last post by:
I'm trying to bind data in a dataset (obtained from an Access DB) to a listbox in ASP.net. I know my dataset is being created properly because it displays fine in a datagrid, but I can't get it to...
0
by: furqanms | last post by:
Hello, I am new to WPF ,I am developing touch screen system using WPF. I am facing problem in Binding relative reference. Here is my code : <UserControl x:Class="uctlBrowser" ...
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...
1
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: 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...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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
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
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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...

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.