Most of the Apps I write are 'Data Mining' apps. In VB6, I used the
MSFlexGrid a lot. Now i'm trying to understand the use of the DataGrid,
DataTable, & DataSet.
Using examples I've gotten from here and from other web sites, I've been
able to populate a DataGrid with a CSV file (though I can't say I fully
understand the code used to do it). Like, where do I find references to all
that gibberish in the ConnectionString?
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & dirImport & ";Extended
Properties=""Text;HDR=No;"""
I'm wondering if there are any tutorials, or detailed explanations of the
DataGrid, DataTable, & DataSet. MSDN says "heres what this does, and here's
some code to do this." Well, that's not what I want to do.
Scenario 1: I need to load a CSV file into a datagrid, modify the data (this
includes deleting & adding columns), and write the data in the grid back to
a file (not necessarily the source file). I would like the user to be able
to select a particular column, hit the delete button, and see the column
disappear.
Scenario 2: Create a DataTable/DataSet in memory, bind it to the DataGrid,
modify the data (again, including deleting & adding columns), then write the
data out to a file. Sometimes I'll need to use the live data from the Grid
to perform functions (like pinging a list of computers in the Grid, and then
adding a column with the IP addresses of those computers to the Grid).
I'm a complete newbie to the dotnet arena so any help & direction is
gratefully accepted.