G
Greg
I call Select on a DataTable looking for a particular DataRow. I can look
at the DataRow 'manually' and see that it exists:
Command Window
?dssearch.Tables("names").Rows(7)("names_id")
"030587" {String}
String: "030587"
I doubled checked the RowState:
?dssearch.Tables("names").Rows(7).RowState
Unchanged
However, when I look for it at runtime like this:
Command Window
?dsSearch.Tables("names").Select("names_id = 030587", "",
DataViewRowState.CurrentRows)
{Length=0}
The call cannot find the DataRow. I tried qualifying the pk with '', but
that did not work.
This has worked for every case except this id: "030587".
What am I missing here?
Greg Robinson
I'm a blogger: http://dotnetrocks.blogspot.com/
at the DataRow 'manually' and see that it exists:
Command Window
?dssearch.Tables("names").Rows(7)("names_id")
"030587" {String}
String: "030587"
I doubled checked the RowState:
?dssearch.Tables("names").Rows(7).RowState
Unchanged
However, when I look for it at runtime like this:
Command Window
?dsSearch.Tables("names").Select("names_id = 030587", "",
DataViewRowState.CurrentRows)
{Length=0}
The call cannot find the DataRow. I tried qualifying the pk with '', but
that did not work.
This has worked for every case except this id: "030587".
What am I missing here?
Greg Robinson
I'm a blogger: http://dotnetrocks.blogspot.com/