Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / General / October 2007

Tip: Looking for answers? Try searching our database.

GridView and datasource

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Michela - 01 Oct 2007 23:58 GMT
(Windows application)

I've inserted a DataGridView in a UserControl

then I've linked a DataSource using the wizard

a Typed DataSet with DataTable etc...

Then I've created the columns ....

in a column I've inserted a combobox

my problem is that in the form I can fill automatically the combo box...
and view the selected value (using the wizard of the object)

but If I insert the object in a usercontrol I obtain an error during the
execution (not durin the backup)... and the combobox is empty

I think that the problem is because I use a usercontrol and not a
form... but How can I resolve this problem?

Thanks
ME - 02 Oct 2007 04:07 GMT
Not sure I totally understand what you mean, but here is just an idea.  I
had a problem were I could not Bind the columns after placing the grid in a
user control.  I solved the issue by making the sure that the property that
exposed the grid columns in the user control had the Bindable attribute set.
I found this was necessary on any property that I needed to bind and also
expose in the user control regardless if the underlining control had the
attribute set as well.

Thanks,

Matt
> (Windows application)
>
[quoted text clipped - 18 lines]
>
> Thanks
Michela - 02 Oct 2007 13:13 GMT
Thank you for reply... Could you send me an example for do this??

use a GridView in a usercontrol and bind a combobox in a specific
column, for see a list of value (and selected items)

Thanks

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.