First off I would like to thank anyone that helps me with this.
What I am trying to do is populate a Datagridview (Windows Forms Application) from a web service.
First thing is to have a button’s onclick event populate the Datagridview and that I got working by having the web service return a dataset and bind it to the Datagridview.
The second thing is to have any changes that is done by the user in the Datagridview saved back to the database (MS-SQL) using another buttons onclick event.
Again any help/examples that you can post here would be very helpful.
Here is what I have so far:
What I am trying to do is populate a Datagridview (Windows Forms Application) from a web service.
First thing is to have a button’s onclick event populate the Datagridview and that I got working by having the web service return a dataset and bind it to the Datagridview.
The second thing is to have any changes that is done by the user in the Datagridview saved back to the database (MS-SQL) using another buttons onclick event.
Again any help/examples that you can post here would be very helpful.
Here is what I have so far:
Code:
namespace MainEvent
{
public partial class Form1 : Form
{
ServiceReference1.WebService DoThis = new ServiceReference1.WebService();
DataSet ds;
//First button.
private void btnFindAttendee_Click(object sender, EventArgs e)
{
ds = new DataSet();
ds = DoThis.BuildFindAttendeesList();
//dgvFoundRegisteredAttendees is the id of the Datagridview.
dgvFoundRegisteredAttendees.DataSource = ds.Tables[0];
}
//Second button.
public void btnSaveAttendeesInformation_Click()
{
// ?????
}
}
}
Comment