Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 4th, 2004, 08:55 AM
Registered User
 
Join Date: Mar 2004
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default selected column databinding with collection

i have created a class which is inherited from collectionbase
and impements IBinding list .
this class is a collection of structure having 3 fields.
when i bind this class to datagrid i am not able to format or order
the columns i want to show on datagrid.

what do i do?


Reply With Quote
  #2 (permalink)  
Old March 4th, 2004, 04:51 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

DataGrids don't support ordering. They provide the functionality to store what the sort expression is however. With that you can tell your data provider (in your case, the collection) what the sort expression is. Usually this is used with a database. You will need to write sorting logic for your specific collection.

How are you trying to format the output? Can we see some code?
Reply With Quote
  #3 (permalink)  
Old March 19th, 2004, 03:52 AM
Registered User
 
Join Date: Mar 2004
Location: , , Yugoslavia.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

How to display data from two related table in same Windows.Forms DataGrid control? Every record from "master" table is related with one or more records in "detail" table. When I press "+" in master table I want to be displayed related records in new DataGrid control. This control have MsAccess when you using DataSheet view for related tables.

Do you know how to create this custom control?

thanks

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Databinding a Generic Collection to a Datagrid rolandatem ASP.NET 2.0 Professional 0 October 7th, 2006 11:08 PM
Selected column name in Pivot Table harmony82 Access 0 July 25th, 2005 04:25 PM
syntax error on <option selected="selected"> hamid HTML Code Clinic 1 October 13th, 2004 09:20 AM
Identifying a selected datagrid column burdickdave ASP.NET 1.x and 2.0 Application Design 0 July 30th, 2003 02:19 PM



All times are GMT -4. The time now is 12:13 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.