Just tell me how would you want to populate the dataset( means do you want to populate the dataset row by row of datagridview or do you want to populate the whole dataset from the datagridview at single time)?
1st you need to create columns, then you fill the row (by looping through rows of dgv):
DataSet ds = new DataSet();
DataTable table = new DataTable("DataFromDGV");
//if you have only one table, it pointless to create a dataSet
//dataSet is used as a collection of more-then-one dataTable
//so you can do:
foreach(DataGridViewColumn col in dgv.Columns)
//fill the rows of table:
foreach (DataGridViewRow row in dataGridView1.Rows)
foreach (DataGridViewCell cell in row.Cells)
table.Rows[row.Index][cell.ColumnIndex] = cell.Value;
Help! I want to create a java program that finds the highest even integer among the values entered by the user. Stop asking values when a value less than 1 have been entered. If no even integer is entered, display "No Even Integer"
Hi, as I was told that my code doesn’t scale well at all, I thought perhaps I’d try to get a better understanding of interfaces/abstract classes and classes and the relationship between them.
I don’t want at this stage work on a big separate project as I've already got plenty ...