473,692 Members | 2,445 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

is it proper to use listView control for this purpose?

Hi,

I'm working on a Windows application and want to use some visual control
like the one used in Visual Studio IDE, for setting properties in the
Properties Windows.
Can I use the listView control for that purpose?
I tried to use it, configuring on details view and two columns, but couldn't
get that users edit the cells in the second column for entering values.

Could anyone help me with that?
Thanks in advance
Eric
Dec 15 '05 #1
4 1487
Eric,

Why not use the PropertyGrid control?

i
"Eric Lin" <Er*****@discus sions.microsoft .com> wrote in message
news:5C******** *************** ***********@mic rosoft.com...
Hi,

I'm working on a Windows application and want to use some visual control
like the one used in Visual Studio IDE, for setting properties in the
Properties Windows.
Can I use the listView control for that purpose?
I tried to use it, configuring on details view and two columns, but
couldn't
get that users edit the cells in the second column for entering values.

Could anyone help me with that?
Thanks in advance
Eric

Dec 15 '05 #2
Set the LabelEdit property to true.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
You can lead a fish to a bicycle,
but it takes a very long time,
and the bicycle has to *want* to change.

"Eric Lin" <Er*****@discus sions.microsoft .com> wrote in message
news:5C******** *************** ***********@mic rosoft.com...
Hi,

I'm working on a Windows application and want to use some visual control
like the one used in Visual Studio IDE, for setting properties in the
Properties Windows.
Can I use the listView control for that purpose?
I tried to use it, configuring on details view and two columns, but
couldn't
get that users edit the cells in the second column for entering values.

Could anyone help me with that?
Thanks in advance
Eric

Dec 15 '05 #3
When I do that, the user can edit the text in the cells in the first column,
but not the values in the second column, actually corresponding to subitem
collection items.
I guess I will try the Properties control, but thanks anyway, and if you
know how I can let the user edit the values in the second column as well,
please let me know it.
thanks again
Eric

"Kevin Spencer" wrote:
Set the LabelEdit property to true.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
You can lead a fish to a bicycle,
but it takes a very long time,
and the bicycle has to *want* to change.

"Eric Lin" <Er*****@discus sions.microsoft .com> wrote in message
news:5C******** *************** ***********@mic rosoft.com...
Hi,

I'm working on a Windows application and want to use some visual control
like the one used in Visual Studio IDE, for setting properties in the
Properties Windows.
Can I use the listView control for that purpose?
I tried to use it, configuring on details view and two columns, but
couldn't
get that users edit the cells in the second column for entering values.

Could anyone help me with that?
Thanks in advance
Eric


Dec 15 '05 #4
thank you, I'll try it.

"Nicholas Paldino [.NET/C# MVP]" wrote:
Eric,

Why not use the PropertyGrid control?

i
"Eric Lin" <Er*****@discus sions.microsoft .com> wrote in message
news:5C******** *************** ***********@mic rosoft.com...
Hi,

I'm working on a Windows application and want to use some visual control
like the one used in Visual Studio IDE, for setting properties in the
Properties Windows.
Can I use the listView control for that purpose?
I tried to use it, configuring on details view and two columns, but
couldn't
get that users edit the cells in the second column for entering values.

Could anyone help me with that?
Thanks in advance
Eric


Dec 15 '05 #5

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

Similar topics

1
3852
by: jomargon | last post by:
Hi! does anyone know how to insert progressbar within a listview? the purpose of the progressbar is to show a graphical representation of a percaentage. thanks! ----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups ---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
0
2613
by: Martin Streller | last post by:
Hello, The code below represents a simple ownerdrawn, Listview class in C#. Its purpose is to avoid the flicker of the MS ListView. So I can't fall back to their one. Does anybody know why I cannot change the size of the ListView's font (ListView.Font) from e.g.
0
1642
by: sorpor | last post by:
I am trying to create a custom listviewsorter by implementing IComparer. My listview has check boxes and the purpose is to move checked item to top of list. They all will be sorted ascendingly. It throws error "-1 is not a valid index" when the sorting is done with listview. I have no problem using the same custom sorter for an arraylist of listviewitems. A bug in listview control? Any suggestion? Thanks, -sorpor
9
10373
by: Kevin Westhead | last post by:
Can anyone confirm whether or not there are any limits imposed on the widths of autosized columns in a list-view. I've found that the autosizing appears to have an upper limit, i.e. it will not expand beyond some (unknown) maximum length. This applies to user-autosizing (double-clicking the divider) and code-autosizing using LVSCW_AUTOSIZE. For example, create a new project and place a ListView (VB5 version) and CommandButton on a form...
2
4959
by: Li Pang | last post by:
Hi, I used some code to add an arrow icon onto a listview header column for the sorting purpose. However, after the icon added, the TextAlign of the column becomes "left", if I enforced TextAlign = right, the icon disppeared. Is somebody has a solution? Thanks
7
14994
by: BobAchgill | last post by:
I am trying to decide which of these controls to use to implement letting my user select a full row from MyList. The MyList has several columns which would be nice to sort by at run time. The MyList data is resident in a dataset table. I'm stuck and can't choose either because. If I choose ListView as my control I don't understand how to programmatically get the data from the dataset table
1
1584
by: --== Alain ==-- | last post by:
Hi, Several months ago i've asked some information about the best way how to have some particular columns (progress bar, checkbox, images, color picker,...) in a ListView component. It seems that ListView is a complex component and a lot of people advise to build a custom component but not from ListVIew itself. Some use a datagrid component as base component, some build a component
0
4651
by: =?Utf-8?B?SWdvcg==?= | last post by:
Hi everyone! I have some strange behavior of ListView control in WPF. We are developing application in C#. I created ListView with some items and set SelectedIndex to some index in the middle of its list. Then I clicked mouse at any place on the ListView and then navigate with Up/Dows keyboard keys, everything works perfectly. But If I move focus to another control and then tries to set focus back to ListView
0
2309
by: bharathreddy | last post by:
Hi All, I am using a listview control in my usercontrol so that it can be used in more than one form. This user control has one column extraw, so i want to make it invisible depending on the form it is being used. I am using table in the listview control for formating purpose. In this table I want to hide a column. Is it posible to hide the column?. I am facing the problem because I cant catch the row its showing null values. ...
0
8610
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
9090
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
8968
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...
1
8810
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8810
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
7633
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6462
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5821
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4559
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.