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 / .NET Framework / New Users / July 2005

Tip: Looking for answers? Try searching our database.

Casting

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Roberto - 13 Jul 2005 12:01 GMT
--I am having a problem casting from 'DataRowView' to integer using a
combobox.

When I try to click on the combobox to retrieve the data from the dataset I
get message that casting from the 'DataRowView' to integer is not valid.
Another problem I am having is setting the datarow for the table and binding
the grid.

Every time Iclick on the combobox I get message that cannot find the
column[System.Int32].

Code used: RowFiter = 'CustomerNumber = " & cboCustomer

Please, can somebody help me there. I will be so glad for your assistance.

I am using academic version of VB.Net 2003.

Robert
Postal Address: 1129, City Place, 111, Church Street, Pretoria, 0001, South
Africa.
CristianMori - 13 Jul 2005 17:40 GMT
Regarding the second question I think that
> Code used: RowFiter = 'CustomerNumber = " & cboCustomer
is wrong. In fact cboCustomer is the object istance, while you need to get
the value of the selected item.
I never used this particular combo, but I think that you should look for a
cboCustomer.SelectedValue or something like that...

> --I am having a problem casting from 'DataRowView' to integer using a
> combobox.
[quoted text clipped - 16 lines]
> Postal Address: 1129, City Place, 111, Church Street, Pretoria, 0001, South
> Africa.

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.