Results 1 to 3 of 3

Thread: Query the data in a datagrid?? Help.

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2000
    Posts
    48

    Question

    Hello everyone,

    Okay, so I have ADODC and Datagrid. The table content is being displayed in the datagrid in a disconnected mode.

    What I want to do is have a combobox with a list of the column names so that user can SORT the data whichever they like. I want to do this by not having to send a new query to the SQL Server, because that is slow. Is it possible?

    In other words, I want the user to be able to SORT and RE-SORT the data that is being shown on the datagrid (as many times as they like), without sending a new query to the SQL Server.

    So I want to be able to do something like:
    "SELECT * FROM datagrid1.something ORDER BY colname"

    Please post any thoughts or ideas, or anything at all. Thanks a lot.

    Martin



  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Have you tried using RS.Filter="field LIKE something" I'm not sure if it forces a reconnect you'll have to try it.

  3. #3

    Thread Starter
    Member
    Join Date
    Sep 2000
    Posts
    48
    Ed,

    Thanks for the reply, but I got it to work using

    RS.Sort = "ColName"

    Thanks.

    Martin

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width