473,473 Members | 1,881 Online
Bytes | Software Development & Data Engineering Community
Create 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 1474
Eric,

Why not use the PropertyGrid control?

i
"Eric Lin" <Er*****@discussions.microsoft.com> wrote in message
news:5C**********************************@microsof t.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*****@discussions.microsoft.com> wrote in message
news:5C**********************************@microsof t.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*****@discussions.microsoft.com> wrote in message
news:5C**********************************@microsof t.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*****@discussions.microsoft.com> wrote in message
news:5C**********************************@microsof t.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
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...
0
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...
0
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...
9
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...
2
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...
7
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...
1
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...
0
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...
0
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...
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
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,...
0
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...
1
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
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...

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.