private void btnSave_Click(object sender, EventArgs e) { foreach (DataGridViewRow _row in Gridview_Output.Rows) { DataRow dt1 = oDataTable.NewRow(); for (int i = 0; i < Gridview_Output.ColumnCount; i++) { Gridview_Input.SelectedRows[0].Cells[1].Value = oDataSet.Tables["data"].Rows[0][1].ToString(); Gridview_Input.SelectedRows[0].Cells[2].Value = oDataSet.Tables["data"].Rows[0][2].ToString(); Gridview_Input.SelectedRows[0].Cells[3].Value = oDataSet.Tables["data"].Rows[0][3].ToString(); Gridview_Input.SelectedRows[0].Cells[4].Value = oDataSet.Tables["data"].Rows[0][4].ToString(); oDataTable.Rows.Add(dt1); } oDataSet.Tables.Add(oDataTable); oDataSet.WriteXml(PathSelection); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)