467,921 Members | 1,322 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,921 developers. It's quick & easy.

Searching and going to a record using datasource controls


I'm trying to use the sqldatasource control and a detailsview to
create a fully functional data entry screen; it's quite easy. I can see
the strength of creating a master grid associated with a detailsview
that gives you access to the record you choose in the grid.

However one of the basic functions of this type of screen is the
ability to enter a search term and have the grid display the record
that is closest the search term. That would allow a user to search for
the record he or she wants and then click on it in the grid to edit it.
I've seen some vague mentions of how this would be done using
datasource controls but nothing specific.

I was also wondering if it was possible to have detailsview (or
formview or gridview for that matter) display a certain record within
from a datasource without having a parent control/datasource to
determine what record that is. For instance, let's say you added a new
record to a table and you wanted the gridview to display the page that
that record is in. You'd have to find which page the record is in by
finding the row number of the record, dividing it by the page size,
etc. I can't seem to find how to do this kind of this in 2005.

I realize I may be missing the point and that the new datasource
controls aren't designed to do this kind of thing; I'm thinking in very
ado.net 1.1 disconnected dataset terms. Any advice would be helpful.


Apr 4 '06 #1
  • viewed: 1048

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Mark Line | last post: by
10 posts views Thread by Mike L | last post: by
33 posts views Thread by Geoff Jones | last post: by
3 posts views Thread by Michiel Rapati-Kekkonen | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.