473,796 Members | 2,455 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

listview vs others

Hi guys.
I have ini file to read and to display it on Windows form in 5 columns.
I need your suggestion on what control will be better to use ListView,
DataGridView or some others.
Any help appreciated.
Nov 4 '08 #1
5 3052
Wndr,

Well, what do you think the advantages of using a ListView over a
DataGridView would be? Anytime I hear "column", I think DataGridView (or
some other sort of data grid).

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Wndr" <so*****@yahoo. comwrote in message
news:eE******** ******@TK2MSFTN GP03.phx.gbl...
Hi guys.
I have ini file to read and to display it on Windows form in 5 columns.
I need your suggestion on what control will be better to use ListView,
DataGridView or some others.
Any help appreciated.

Nov 4 '08 #2
Thank you.
In my toolbox I could see only DataGridView, where could I get any other
GridView, and if it's possible to use DataGridView to add the data from ini
files?, because all samples I could find it's directly from the database.
And last question, do you know any samples on using DataGridView or any
GridView from the txt file or something like this.
Sorry, came from VB.

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c omwrote in
message news:%2******** **********@TK2M SFTNGP03.phx.gb l...
Wndr,

Well, what do you think the advantages of using a ListView over a
DataGridView would be? Anytime I hear "column", I think DataGridView (or
some other sort of data grid).

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Wndr" <so*****@yahoo. comwrote in message
news:eE******** ******@TK2MSFTN GP03.phx.gbl...
>Hi guys.
I have ini file to read and to display it on Windows form in 5 columns.
I need your suggestion on what control will be better to use ListView,
DataGridView or some others.
Any help appreciated.


Nov 4 '08 #3
Wndr,

The DataGridView will be used the same way from C# or VB regardless,
since it's not language specific, but included in the framework (unless you
are referring to VB6).

As for using it, you can bind the data grid view into almost any data
source that implements IList. You could create an object that represents a
"row" and then populate it from your INI file (one for each "row") and then
add them to a List<Tof those objects (which implements IList) and set that
as the data source...

Either that, or you could create a DataSet with the appropriate columns
and add the data from the INI file to that, and then bind the DataGridView
to that.

For samples, a search on Google for "datagridvi ew" and "sample" should
turn up a good deal of information.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Wndr" <so*****@yahoo. comwrote in message
news:eT******** ******@TK2MSFTN GP06.phx.gbl...
Thank you.
In my toolbox I could see only DataGridView, where could I get any other
GridView, and if it's possible to use DataGridView to add the data from
ini files?, because all samples I could find it's directly from the
database. And last question, do you know any samples on using DataGridView
or any GridView from the txt file or something like this.
Sorry, came from VB.

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c omwrote
in message news:%2******** **********@TK2M SFTNGP03.phx.gb l...
>Wndr,

Well, what do you think the advantages of using a ListView over a
DataGridView would be? Anytime I hear "column", I think DataGridView (or
some other sort of data grid).

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Wndr" <so*****@yahoo. comwrote in message
news:eE******* *******@TK2MSFT NGP03.phx.gbl.. .
>>Hi guys.
I have ini file to read and to display it on Windows form in 5 columns.
I need your suggestion on what control will be better to use ListView,
DataGridVie w or some others.
Any help appreciated.



Nov 4 '08 #4
Thank you so much.

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c omwrote in
message news:eW******** ******@TK2MSFTN GP03.phx.gbl...
Wndr,

The DataGridView will be used the same way from C# or VB regardless,
since it's not language specific, but included in the framework (unless
you are referring to VB6).

As for using it, you can bind the data grid view into almost any data
source that implements IList. You could create an object that represents
a "row" and then populate it from your INI file (one for each "row") and
then add them to a List<Tof those objects (which implements IList) and
set that as the data source...

Either that, or you could create a DataSet with the appropriate columns
and add the data from the INI file to that, and then bind the DataGridView
to that.

For samples, a search on Google for "datagridvi ew" and "sample" should
turn up a good deal of information.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Wndr" <so*****@yahoo. comwrote in message
news:eT******** ******@TK2MSFTN GP06.phx.gbl...
>Thank you.
In my toolbox I could see only DataGridView, where could I get any other
GridView, and if it's possible to use DataGridView to add the data from
ini files?, because all samples I could find it's directly from the
database. And last question, do you know any samples on using
DataGridView or any GridView from the txt file or something like this.
Sorry, came from VB.

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c omwrote
in message news:%2******** **********@TK2M SFTNGP03.phx.gb l...
>>Wndr,

Well, what do you think the advantages of using a ListView over a
DataGridVie w would be? Anytime I hear "column", I think DataGridView
(or some other sort of data grid).

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Wndr" <so*****@yahoo. comwrote in message
news:eE****** ********@TK2MSF TNGP03.phx.gbl. ..
Hi guys.
I have ini file to read and to display it on Windows form in 5 columns.
I need your suggestion on what control will be better to use ListView,
DataGridVi ew or some others.
Any help appreciated.



Nov 4 '08 #5
Wndr kirjoitti:
Hi guys.
I have ini file to read and to display it on Windows form in 5 columns.
I need your suggestion on what control will be better to use ListView,
DataGridView or some others.
Any help appreciated.

If you do not know beforehand how you will show the data, use
DataGridView. But if you know that you will need icons and checkboxes
associated with lines, ListView might be better. Also I like ListView's
group feature.

--
Arto Viitanen
Nov 5 '08 #6

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

Similar topics

0
1364
by: Mike Barrett | last post by:
I have a strange one here and I believe it is a bug. I googled it and saw others having a similar issue and nobody seems to have a fix. I will take another shot. I get this ERROR MESSAGE... "Specified argument was out of the range of valid values. Parameter Name: '9' is not a valid value for 'index'." ....when I attempt to "Refresh" a ListView control AFTER it has been sorted.
1
2437
by: (Pete Cresswell) | last post by:
TabControl on the right side of a form with two tabs: Tab #1 contains two subforms that show some dynamic query results. Tab #2 contains a ListView that gets dynamically populated as the user navigates a TreeView on the left side of the form. The first time I load the ListView, if the tab containing it is not selected (i.e. the ListView is not visible) the screen draws the ListView's contents in the upper left portion of the form -...
0
1444
by: Mike Barrett | last post by:
I have a strange one here and I believe it is a bug. I googled it and saw others having a similar issue and nobody seems to have a fix. I will take another shot. I get this ERROR MESSAGE... "Specified argument was out of the range of valid values. Parameter Name: '9' is not a valid value for 'index'." ....when I attempt to "Refresh" a ListView control AFTER it has been sorted.
2
6279
by: Mike | last post by:
Ok I'm having a problem with a listview. I have a listview on a WinForm called ProgramInformationFrm. I call this from from 2 other forms. One is ProgramSearch Frm, the other is OpenNCFrm. The search form accepts criteria from a user ans searches a sql table for any nc program that matches the criteria. The open form gives the user a list of programs that have not been added to table yet. Ok, enough background. What is happening is if I use...
2
3681
by: Dave | last post by:
When converting VB6 ListView code to DotNet, what do you do to replace the ListView.FocusedItem object, specifically I want to reference ListView.FocusedItem.Top Thanks Dave
7
5119
by: =?Utf-8?B?YnJhaW5mdWVsbWVkaWE=?= | last post by:
Can anyone point me in the direction of creating a custom listview item? I guess the other question then - is this possible? I want to create a list of listview items comprised each comprised of text and a set of textboxes.
10
4049
by: Rob | last post by:
VS 2005 How can you tell if a value is contained in a specific column (let's say column 1 named Status) of a ListView ? In a list box you could go... If ListBox1.Items.Contains(strWhatever) then How would you accomplish this using a ListView ?
5
1562
by: R | last post by:
Minimizing an app that uses a ListView in a custom control causes all entries in the ListView to disappear, never to return. What would affect this?
5
9539
by: Mark Olbert | last post by:
How do I get the DataPager and ListView to play nice together when I use a custom datasource? In my webpage, I use linq to pull data from a SqlServer database and assign the resulting IEnumerable<to the ListView's Datasource property. This all works fine to display the first 3 items (the DataPager is set to display three items at a time), but when I click on the next page in the DataPager...nothing happens. There's a roundtrip to the...
0
9680
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9528
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10455
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10228
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10006
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5441
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5573
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3731
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2925
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.