I have a DataGridView
that I feed from about TextBox
and I need to pass the content from DataGrid
to DataSet
with a DataTable
previously created, I tried to cast it like this:
DataSet ds = (DataSet)dataGridView.DataSource;
But it does not work, I would like to know if there will be any way to do it.