J
jose.mendez22
In my code I create a sqlDataAdapter that which contains a simple
select command using the Northwind DB (SELECT top 15 customerID,
companyName, contactName, contactTitle From Customers). I populate the
dataSet using the fill and bind the dataset to a datagrid. I then bind
a text box control to a field on my dataset. When I move around the
datagrid my textbox control values does not change. It the value stays
on the first record. If anyone could provide any suggestions as to
what I'm doing wrong I would greatly appreciate it.
this.daNorthWind.FillSchema(this.dsCustomer,SchemaType.Source,
"Customers");
this.daNorthWind.Fill(this.dsCustomer,"Customers");
this.dataGrid1.DataSource = new
DataView(this.dsCustomer.Tables["Customers"]);
this.txtCustomerID.DataBindings.Add("Text",this.dsCustomer.Tables["Customers"],
"customerID"
Thanks
select command using the Northwind DB (SELECT top 15 customerID,
companyName, contactName, contactTitle From Customers). I populate the
dataSet using the fill and bind the dataset to a datagrid. I then bind
a text box control to a field on my dataset. When I move around the
datagrid my textbox control values does not change. It the value stays
on the first record. If anyone could provide any suggestions as to
what I'm doing wrong I would greatly appreciate it.
this.daNorthWind.FillSchema(this.dsCustomer,SchemaType.Source,
"Customers");
this.daNorthWind.Fill(this.dsCustomer,"Customers");
this.dataGrid1.DataSource = new
DataView(this.dsCustomer.Tables["Customers"]);
this.txtCustomerID.DataBindings.Add("Text",this.dsCustomer.Tables["Customers"],
"customerID"
Thanks