How to get the datasource from a datagrid

Discussion in 'ASP .Net Web Controls' started by Pkenty, Sep 18, 2004.

  1. Pkenty

    Pkenty Guest

    Hi, im trying to get the datasource from a datagrid to in order to make
    changes to the dataset before rebinding it back to the datagrid...

    how can i get the dataset?
     
    Pkenty, Sep 18, 2004
    #1
    1. Advertising

  2. Pkenty

    Scott M. Guest

    When you know that the grid's datasource is a datagrid, you can write:

    Dim x as Dataset = Ctype(DataGrid.DataSource,DataSet)




    "Pkenty" <> wrote in message
    news:...
    > Hi, im trying to get the datasource from a datagrid to in order to make
    > changes to the dataset before rebinding it back to the datagrid...
    >
    > how can i get the dataset?
     
    Scott M., Sep 18, 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. Johnny

    DataGrid's DataSource

    Johnny, Aug 19, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    397
    David Wier
    Aug 20, 2003
  2. matthew schouppe
    Replies:
    3
    Views:
    2,361
    Scott Allen
    Apr 30, 2004
  3. vips
    Replies:
    7
    Views:
    6,300
    pushpakladdha
    May 11, 2006
  4. matthew schouppe

    DataGrid ItemStyle is a textbox and doesn't update the datagrid datasource

    matthew schouppe, Apr 29, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    3
    Views:
    202
    Scott Allen
    Apr 30, 2004
  5. Dave
    Replies:
    0
    Views:
    202
Loading...

Share This Page