Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Nest Listbox inside Datagrid

Posted on 2004-11-09
7
Medium Priority
?
358 Views
Last Modified: 2011-09-20
Is it possible to nest a listbox control inside of a datagrid that is bound to a different table?

Scenario:
I have a datagrid that 3/4's of it is bound to one table(News).  When a user wants to view a list of articles, they will get a datagrid that contains all news articles with Title, Author(s), Date etc.  

I need the Authors result to be listed inside a listbox control with rows=1 for space issues.  Since there can be more than one author for an article the data for authors is contained in a seperate table with a foreign key relationship (or join) with the News Table.

Any thought wold be appreicated.

Sincerely,

Tim
0
Comment
Question by:TMF123
  • 3
  • 2
5 Comments
 
LVL 13

Expert Comment

by:dungla
ID: 12541067
0
 
LVL 13

Expert Comment

by:dungla
ID: 12541071
0
 

Author Comment

by:TMF123
ID: 12544319
Thanks dunlga.

No luck on the first link (404).

The second link deals primarily with a dropdownlist control inside the custom column.  This is find for viewing the list of authors, however; I really need to be able to implement the listbox control in edit mode.

Do you have any additional ideas or article references you can throw my way.

Thanks again.

Tim
0
 

Author Comment

by:TMF123
ID: 12544390
Also, this is a web application written in C#.  I don't know if that presents any limitations with existing controls under the web environment compared to a windows form.

Thanks again.

Tim
0
 
LVL 13

Accepted Solution

by:
dungla earned 2000 total points
ID: 12561985
TMF123,

Maybe this way could help you:

1) Right click on your datagrid in design view, select Property Builder,
2) In Property Builder screen, select Columns section
3) Add a Template Column to Selected Column box and click OK
4) Right click again on your datagrid and select Edit Template -> Column[x]. This action will display the Edit Template screen same as the DataRepeater or DataList control
5) Select ListBox in Toolbox and placed in the Item Templace section of Edit Template screen.
6) Now you can do anything you want to your new Listbox in your datagrid.

Hope this help.
.:: LDLP ::.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Kernel Data Recovery is a renowned Data Recovery solution provider which offers wide range of softwares for both enterprise and home users with its cost-effective solutions. Let's have a quick overview of the journey and data recovery tools range he…
Suggested Courses
Course of the Month11 days, 16 hours left to enroll

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question