M
Mike Cooper
Hi everyone,
I can't seem to get my dataview configured properly. I am using it on
a windows form to filter information from a datatable which is itself
populated from a dataset and ultimately, from a datasource (external
database). The datatable populates fine, but the dataview keeps
popping up errors when I try to configure it. Following is what I
have coded for it:
'OR_DataView
'
Me.OR_DataView.RowFilter = "'Main_DataColumn3 = Orlando and
Main_DataColumn25 = TRUE'"
Me.OR_DataView.RowStateFilter = System.Data.DataViewRowState.None
Me.OR_DataView.Table = Me.Main_Table
Me.OR_DataView.Sort = "Main_DataColumn3"
The .RowFilter and the .Sort parameters are giving me the most
trouble. The .RowFilter string is no longer giving me errors but I
have not been able to test it. No matter what I place in the .sort
field, I get the same error:
INVALID Entry, cannot find column.
I have tried all of the table columns, and for good measure those in
the dataset and even the datasource. If I try to set this parameter
in the properties gui, I get the above error immediately. If I try to
set it in the code I accepts it until I try to move to the form view,
at which point ALL of the parameters for the dataview disappear in
both code and gui!
I am using Visual Basic.net 2003. Can anyone tell me how I can
configure this?
Thanks,
Mike Cooper
I can't seem to get my dataview configured properly. I am using it on
a windows form to filter information from a datatable which is itself
populated from a dataset and ultimately, from a datasource (external
database). The datatable populates fine, but the dataview keeps
popping up errors when I try to configure it. Following is what I
have coded for it:
'OR_DataView
'
Me.OR_DataView.RowFilter = "'Main_DataColumn3 = Orlando and
Main_DataColumn25 = TRUE'"
Me.OR_DataView.RowStateFilter = System.Data.DataViewRowState.None
Me.OR_DataView.Table = Me.Main_Table
Me.OR_DataView.Sort = "Main_DataColumn3"
The .RowFilter and the .Sort parameters are giving me the most
trouble. The .RowFilter string is no longer giving me errors but I
have not been able to test it. No matter what I place in the .sort
field, I get the same error:
INVALID Entry, cannot find column.
I have tried all of the table columns, and for good measure those in
the dataset and even the datasource. If I try to set this parameter
in the properties gui, I get the above error immediately. If I try to
set it in the code I accepts it until I try to move to the form view,
at which point ALL of the parameters for the dataview disappear in
both code and gui!
I am using Visual Basic.net 2003. Can anyone tell me how I can
configure this?
Thanks,
Mike Cooper