I've found the way to get Dbcommand for a QueryInformation class (For my simple queires).
SqlDataSourceItem.CreateDbCommand(query);
If you are trying to maniulate a BrowseDialog, then you would handle the Searching event and manipulate the WhereCollection. There is a new sample of this in the 1.6.5 release in the Advanced BrowseDialog sample as well as in the help documentation: Application Framework -> UI Layer -> Controls -> Browse Dialog -> Events
I wonder WhereStatement class requires fields and values (these are array) but one WhereStatementTypeOptions (Equals,Greaterthan,LessThan etc). Why ?
Please explain the general process of building Where clause from WhereStatementCollection.
And I need Dbcommand object build from the QueryInformationClass ? How can I get this ?