문제

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