record list

  • Thread starter Thread starter Jean-Marie Epitalon
  • Start date Start date
J

Jean-Marie Epitalon

Hello,

I am in charge of modifying software written in Visual C++ 7.0 (dot.NET).
Currently, the program displays a list of records in a simple ListControl.

I would like to replace this listControl with something that displays
records in table format, on attribute per column, neatlly adjusted.
What is the best solution for this?
What if I would like to sort records based on an attribute value , change
the column size, etc...

Thanks in advance for your response.

Jean-Marie Epitalon
Interlab
15340 MOURJOU
France
 
Jean,

For what you ask is the datagrid. (two different versions one for the web
and one for windowsforms)

That is very easy to bind to any datatable or its view the dataview

I hope this helps,

Cor
 
Thanks, Cor,

I guessed that the answer of my question be the DataGrid.
For what you ask is the datagrid. (two different versions one for the web
and one for windowsforms)

That is very easy to bind to any datatable or its view the dataview

Does this mean that I have to include a managed class into my project?
Will I find it in the class wizard ?
Will I have to learn some technique beyond standard Windows-C++ code ?

Would it be easier to use an ActiveX control (I never did that either) ?

Thanks in advance
Jean-Marie
 
Jean,

Although this sample gives answers on some difficult questions where the
answers from are not that easy to find, is it easy to try, so do that.

http://www.windowsformsdatagridhelp.com/default.aspx?ID=76a81eb8-ea2d-48f4-99c3-a3539697edbd

Know that there is in Net and especially not VBNet almost never "a" best
method to do something.

A datatable in this sample is a class (object in fact) that can exist inside
a dataset. A dataset is easy to fill and to update (this include inserts,
deletes and updates) from a database using an adapter.

However to get the power of a datagrid, play a little with this sample.
Beside this more general confection view you can use your own "style" with
it.

To give you some more information about a dataset.
A dataset references to a collection of datatables
Those datatables reference forever back to a dataset to their parent (and
therefore as all elements in a dataset can only exist in one dataset)
Beside the datatable holds the dataset relations between tables and there
columns.
A datatable holds references to columns, which are a description part and
rows which holds the references to the data. That data exist inside the rows
as items. It are all seperate classes and therefore everything is object.
Beside that is very important the dataview which is to use the data in the
datatable filtered or sorted.

I hope this gives an idea.

Cor
 
Back
Top