473,395 Members | 1,977 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,395 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 1716
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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: 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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.