I have a table called "Details", this table has a column called "invoice", this column is of data type "bit"

The records in this table are displayed in a gridview. I have a button called "btnSaveAll" obviously this button saves all changes made ​​in the records of this table, the problem occurs in certain occasions you need not save all, only some records, for this reason I have that column called "bit".

How I can save only records with column "invoice" in checked?.

I mention the user decide the record that want to save

I am working with dataset and TableAdapters.

Please, helps, THANKS

Button Save ALL

private void btnGuardar_Click(object sender, EventArgs e)
{
        DetailsTableAdapter.Adapter.Update(DSDataSet.Details);
}
有帮助吗?

解决方案

_ds.UpdateParameters["Name"].DefaultValue = "Burak";

_ds.UpdateParameters["ID"].DefaultValue = 1;

_ds.Update();

i think this is will solve your problem..

其他提示

You should edit sqldatasource UpdateQuery properties manually.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top