473,379 Members | 1,423 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

record list

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
Jul 22 '05 #1
3 1281
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

Jul 22 '05 #2
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

Jul 22 '05 #3
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....3-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

Jul 22 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: Rick | last post by:
Hi all, Is there a MySQL function to get the first record through a query? I would like to open a page of client records with the first one shown. The other records can be accessed from a...
4
by: Skully Matjas | last post by:
I am using the following code (created by the wizard) to allow to bring my form to a particular entery. But when I edit the entery (ex: put new information into a blank cell), it puts that record...
1
by: Skully Matjas | last post by:
Thank you for getting back to me. I am very new at this so i didnot understand what you said, here i will give as much cetails as possible: 1) The combo box i am using is combox39 2) I imported...
6
by: Robin S. | last post by:
Originally I wanted a list box which selects which record is the current one within the same form. Easy enough until Access takes a dump when one is deleted and then someone tries to select it in...
1
by: kkrizl | last post by:
I have a form that displays general information about an alarm permit location. There's a subform that shows detailed information about burglar alarms that have gone off at the location. When a...
3
by: Mark Vergara | last post by:
Hi to all, I want to know if there is a way of getting the position of the particular record in the dataset aside from CurrencyManger.position let say for example we have a record.. cntID ...
7
by: Stephen Poley | last post by:
I have the following situation: - a table of employees, keyed on employee-id; - a table of training sessions, keyed on session-id; - a requirement to log who was present at which session, plus...
3
by: helpful sql | last post by:
Hi, I am working on an app that will display the list of all scheduled call records in our database to the users. All users of the application will see the same list of call records and will...
6
by: AA Arens | last post by:
Hi, I have a database with 2 main forms. Contacts and companies. I share the base with two others via LAN. On the companies form I have buttons to navigate throught the records (>400). We are...
1
by: Sunray | last post by:
I have a form called the sales form and i have 2 sets of listboxes So what happens is. i add items form the bottom set of list boxes which are bound to a data base to the top set of list boxes which...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.