943,147 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 2795
  • C# RSS
Feb 28th, 2010
0

Dropdown Grid Control or Grid in a combobox

Expand Post »
Hi everyone,
I'm new in this forum. This is my first post.
Can you guys give me any idea about adding a grid control into a combobox (Windows Application)?
While developing desktop applications with C# I felt many times that it would be preety good and very useful to have a hide n peek DataGridView. User can check or make a quick search through the main table where he/she wanna choose data from. For your reference I have seen this is available with a ERP system e.g. Microsoft Dynamics Ax. Data from the desired column of the gridview would be the "selected Item" for that combobox control. I have done adding combobox into a datagridview row. But here I wanna make the reverse.
So, please help me with informations and ideas.
Any sort of help is highly appreciated. Thank you.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
thegreymatter is offline Offline
1 posts
since Feb 2010
Feb 28th, 2010
0
Re: Dropdown Grid Control or Grid in a combobox
IF you create a new form with the borderstyle set to none and have it accept a GridView in the constructor you can pass an instance of a gridview control that is created on the main form but not added to it. Then the new form can be animated in with EXAnimatedWindow api. and set the passed gridview to dock and fill the new form, then have an event that when it looses focus the new form closes and removes the gridview from the form's control collection as not to be disposed and then whatever changes and selections were made will be available via the original instance as it was only passed as a reference and not a copy.

I know this can sound complicated and it can be. But its really the only way to achieve a real drop down effect as the Show?hide method is sloppy and doesn't have a reusable drop in usability.

Sorry if i didn't explain this well. As I have done it before with the tree view and such I know it works in practice but here I have presented enough theory for you to be able to figure it out.
Reputation Points: 442
Solved Threads: 89
Master Poster
Diamonddrake is offline Offline
721 posts
since Mar 2008
Mar 1st, 2010
0
Re: Dropdown Grid Control or Grid in a combobox
Moderator
Reputation Points: 2136
Solved Threads: 1228
Posting Genius
adatapost is offline Offline
6,525 posts
since Oct 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC