Selective DataGrid

Discussion in 'ASP .Net' started by =?Utf-8?B?TGlsbGlhbg==?=, Jun 2, 2004.

  1. Hello
    I have a question on DataGrids
    In an ASP page, I bind a DataGrid to a dataset. What can I do to display only the rows in which the first column = "some_text"
    I can probably define another dataset or have some sort of a query on the original dataset with the first column constraints, but i think this approach sucks
    I'm not too familiar with the DataGrid control, and I read it can do a lot of cool stuff; I'm sure there must be a solution for this problem

    Thanks
     
    =?Utf-8?B?TGlsbGlhbg==?=, Jun 2, 2004
    #1
    1. Advertising

  2. =?Utf-8?B?TGlsbGlhbg==?=

    Marina Guest

    Use a DataView on top of the specific table your are binding to, and set the
    filter. Then bind the grid to the DataView.

    "Lillian" <> wrote in message
    news:...
    > Hello.
    > I have a question on DataGrids.
    > In an ASP page, I bind a DataGrid to a dataset. What can I do to display

    only the rows in which the first column = "some_text"?
    > I can probably define another dataset or have some sort of a query on the

    original dataset with the first column constraints, but i think this
    approach sucks.
    > I'm not too familiar with the DataGrid control, and I read it can do a lot

    of cool stuff; I'm sure there must be a solution for this problem.
    >
    > Thanks
     
    Marina, Jun 2, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Bobby Maul
    Replies:
    2
    Views:
    471
    Eddie Dodd
    May 27, 2004
  2. =?Utf-8?B?S3VydCBTY2hyb2VkZXI=?=

    selective validation on specific buttons only

    =?Utf-8?B?S3VydCBTY2hyb2VkZXI=?=, Mar 22, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    405
    =?Utf-8?B?S3VydCBTY2hyb2VkZXI=?=
    Mar 22, 2005
  3. =?Utf-8?B?U29saXR1cw==?=

    Selective databinding

    =?Utf-8?B?U29saXR1cw==?=, Oct 10, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    406
    Karl Seguin
    Oct 10, 2005
  4. yasaswi

    selective page access

    yasaswi, Feb 3, 2005, in forum: Java
    Replies:
    2
    Views:
    320
    yasaswi
    Feb 4, 2005
  5. greenvelvet

    selective hotlink prevention

    greenvelvet, Oct 4, 2005, in forum: HTML
    Replies:
    1
    Views:
    423
    greenvelvet
    Oct 4, 2005
Loading...

Share This Page