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

A

Andrew Connell

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top