--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.