views:

366

answers:

2

I want to migrate from Embarcadero Delphi to Visual Studio, but without a TClientDataset class it is very difficult. This class represents an in-memory dataset.

I can't find any class like TClientDataset.

Can anyone help me find something like this please?

+1  A: 

Visual studio has DataSet and DataTable classes which are very close to what a TClientDataSet is in Delphi.

See http://msdn.microsoft.com/en-us/library/system.data.dataset.aspx

Chris Lively
+2  A: 

The .NET couple System.Dataset and System.Datatable are very different beasts from the TClientDataset.

Filtering and binding are done on another class (Dataview), dotNET DataGrid hides this a little. Extract method is the nearest a datatable provides in termes of filtering (it returns an array of pointers to DataRows).

Grouping is not so powerful as in TClientDataset, as also indexing is poorer. (As in dotNet 1.1)

There's no record cursor on DataTable, so the positioning is on the visual controls - it takes 10 lines of codes just to get the actual record out of a DataGrid.

So the easiness of positioning the cursor on grid and get the value of the field of the dataset does not exist.

Fabricio Araujo