DataGrid contains no data after postback of edit button click...

Discussion in 'ASP .Net' started by Andrew Connell, Nov 6, 2003.

  1. This is specifically what is going on in my application:
    http://msdn.microsoft.com/asp.net/u...akes.asp#aspnet-commondatagridmistakes_topic6

    However, regardless of how I bind my dataset... it keeps showing up without data. Here's the code in my edit handler (GetApplicationReleases returns a dataset):

    Private Sub ApplicationReleaseDataGrid_EditCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles ApplicationReleaseDataGrid.EditCommand
    ApplicationReleaseDataGrid.EditItemIndex = e.Item.ItemIndex
    ApplicationReleaseDataGrid.DataSource = _application.GetApplicationReleases
    ApplicationReleaseDataGrid.DataBind()
    End Sub

    --
    -AC
     
    Andrew Connell, Nov 6, 2003
    #1
    1. Advertising

  2. post your code

    "Andrew Connell" <> wrote in message news:<#>...
    > This is specifically what is going on in my application:
    > http://msdn.microsoft.com/asp.net/using/building/webcontrols/default.aspx
    > ?pull=/library/en-us/dnaspp/html/aspnet-commondatagridmistakes.asp#aspn
    > et-commondatagridmistakes topic6
    >
    > However, regardless of how I bind my dataset... it keeps showing up
    > without data. Here's the code in my edit handler
    > (GetApplicationReleases returns a dataset):
    >
    > Private Sub ApplicationReleaseDataGrid EditCommand(ByVal source As
    > Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs)
    > Handles ApplicationReleaseDataGrid.EditCommand
    > ApplicationReleaseDataGrid.EditItemIndex = e.Item.ItemIndex
    > ApplicationReleaseDataGrid.DataSource =
    > application.GetApplicationReleases
    > ApplicationReleaseDataGrid.DataBind()
    > End Sub
     
    Michael Evanchik, Nov 10, 2003
    #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. Purvi T
    Replies:
    0
    Views:
    900
    Purvi T
    Oct 19, 2004
  2. Max2006
    Replies:
    2
    Views:
    1,618
    Walter Wang [MSFT]
    Sep 19, 2007
  3. Andrew Connell

    DataGrid contains no data after postback of edit button click...

    Andrew Connell, Nov 6, 2003, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    194
    Andrew Connell
    Nov 6, 2003
  4. Sharon McCarty
    Replies:
    0
    Views:
    272
    Sharon McCarty
    Nov 24, 2004
  5. Frank Kurka
    Replies:
    8
    Views:
    329
Loading...

Share This Page