karthikeya
asked on
database update frm datagrid
hello all
following is my sample code
OleDbConnection conn = new OleDbConnection ("Provider= Microsoft.Jet.OlEDB.4.0;
Data Source = c:\\book.mdb;");
OleDbCommand command = new OleDbCommand ("SELECT * FROM addressbook",conn);
OleDbDataAdapter adapter = new OleDbDataAdapter(command);
DataSet ds = new DataSet();
adapter.fill(ds,"addressbo ok");
dgrid.SetDataBinding ( dset, “addressbook” );
now its displaying the entire table (addressbook ) my datagrid (dgrid)
if i want to update the tablenow - how to do ?
pls help
following is my sample code
OleDbConnection conn = new OleDbConnection ("Provider= Microsoft.Jet.OlEDB.4.0;
Data Source = c:\\book.mdb;");
OleDbCommand command = new OleDbCommand ("SELECT * FROM addressbook",conn);
OleDbDataAdapter adapter = new OleDbDataAdapter(command);
DataSet ds = new DataSet();
adapter.fill(ds,"addressbo
dgrid.SetDataBinding ( dset, “addressbook” );
now its displaying the entire table (addressbook ) my datagrid (dgrid)
if i want to update the tablenow - how to do ?
pls help
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
did you ever sort this?