473,396 Members | 1,832 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,396 software developers and data experts.

Using a datagrid for something other than DB data

Hi folks

I am doing a project that involves getting a list (subject to certain
criteria) of filenames of mp3 files and the corresponding play time.

I want to display that list (both the name and the play time) in separate
columns.

I was originally thinking in term of a datagrid control with 2 columns, but
it appears as though it is only suitable for DB data.

What I was wondering is, can a datagrid be used for the purpose I have in
mind? Or is there some other control that I could use?

Regards

Ross
Oct 21 '06 #1
1 1055
In article <F5**********************************@microsoft.co m>,
Ro**@discussions.microsoft.com says...
Hi folks

I am doing a project that involves getting a list (subject to certain
criteria) of filenames of mp3 files and the corresponding play time.

I want to display that list (both the name and the play time) in separate
columns.

I was originally thinking in term of a datagrid control with 2 columns, but
it appears as though it is only suitable for DB data.

What I was wondering is, can a datagrid be used for the purpose I have in
mind? Or is there some other control that I could use?
If you're using .NET 2.0, then check out the new DataGridView. It's
much more powerful and easier to use (in my opinion) than the DataGrid.

If you're still using .NET 1.x, it might be easiest to just build an in-
memory DataTable and bind that to the DataGrid -- especially if you're
just displaying the data.

--
Patrick Steele
http://weblogs.asp.net/psteele
Oct 21 '06 #2

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

Similar topics

3
by: Diego TERCERO | last post by:
Hi... I'm working on a tool for editing text resources for a family of software product my company produces. These text resources are found in a SQL Server database, in a table called...
2
by: VM | last post by:
When I display data to a Windows datagrid I usually fill the underlying table (in another class) and then, once it contains all the data, I attach it to the grid. But there are some processes that...
0
by: mgenti | last post by:
I am experiencing a problem when I add a row to a DataTable that is used on a DataGrid in my Windows Form application. When I add a new row I no longer get a response from my form. I see the row...
3
by: Doug | last post by:
Hi I have the following code (not mine) that populates a datagrid with some file names. But I want to replace the datagrid with a combo box. private void OnCurrentDataCellChanged(object sender,...
2
by: Andy Fish | last post by:
Hi, I have some data which is stored as an array (or possibly an arraylist) of identically typed objects, each of which has certain public properties. I want to display these in a datagrid...
11
by: Fred Nelson | last post by:
I have an application in which it would be VERY beneficial if I could obtain the names of the colums in a datagrid. For example dim datagrid1 as new datagrid datagrid1.datasource = (stored...
5
by: lanem | last post by:
I want to display some drill-down data with a datagrid look. I can get the exact functionality I want with a treeview, but I don't like the way the treeview looks and formats the data. I want a...
4
by: Tom Holmes Jr. | last post by:
Does anyone else have an issue with the datagrid? My complaints are: 1) it is much harder to change the column style, row style, or cell style without going through a lot of hoops. 2) bind...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.