Click here to Skip to main content
15,896,201 members
Home / Discussions / C#
   

C#

 
QuestionHow to disable a ListVite item? Pin
arefkarimi26-Nov-07 20:23
arefkarimi26-Nov-07 20:23 
AnswerBlatant Multiposting within 1 minute :: Occurence: 2 (Please Ignore) Pin
Vasudevan Deepak Kumar26-Nov-07 20:30
Vasudevan Deepak Kumar26-Nov-07 20:30 
QuestionHow to disable a ListViewItem? Pin
arefkarimi26-Nov-07 20:22
arefkarimi26-Nov-07 20:22 
AnswerRe: How to disable a ListViewItem? Pin
KennyPatel26-Nov-07 21:42
KennyPatel26-Nov-07 21:42 
AnswerRe: How to disable a ListViewItem? Pin
mav.northwind26-Nov-07 21:59
mav.northwind26-Nov-07 21:59 
GeneralRe: How to disable a ListViewItem? Pin
arefkarimi26-Nov-07 22:33
arefkarimi26-Nov-07 22:33 
GeneralRe: How to disable a ListViewItem? Pin
mav.northwind27-Nov-07 1:57
mav.northwind27-Nov-07 1:57 
GeneralRe: How to disable a ListViewItem? Pin
Dave Kreskowiak27-Nov-07 9:03
mveDave Kreskowiak27-Nov-07 9:03 
Mav is dead on with his response. In order to do this, you'd have to roll your own ListView and ListViewItem classes to expose this kind of functionality.

If you don't want to do that, you could always just remove the disabled items from the ListView.

You really should read up on Windows GUI design guide. In there, it'll tell you why what you're doing is a bad idea. Something about a "consistant user experience". A ListView control is expected to provide a list of valid and selectable items. Turning off some items is an unexpected behavior for the control, thereby leading to confusion about how the control really works.



A guide to posting questions on CodeProject[^]

Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


Questionhow can i checked dynamicallay in gridview in windows. Pin
Rajeshwar Code- Developer26-Nov-07 19:55
Rajeshwar Code- Developer26-Nov-07 19:55 
AnswerRe: how can i checked dynamicallay in gridview in windows. Pin
Sun Rays26-Nov-07 19:57
Sun Rays26-Nov-07 19:57 
GeneralRe: how can i checked dynamicallay in gridview in windows. [modified] Pin
Rajeshwar Code- Developer26-Nov-07 20:07
Rajeshwar Code- Developer26-Nov-07 20:07 
GeneralRe: how can i checked dynamicallay in gridview in windows. Pin
Sun Rays26-Nov-07 20:57
Sun Rays26-Nov-07 20:57 
Questionhow to recognize deleted contact in outlook Pin
M LN Rao26-Nov-07 19:43
M LN Rao26-Nov-07 19:43 
AnswerRe: how to recognize deleted contact in outlook Pin
Sun Rays26-Nov-07 19:55
Sun Rays26-Nov-07 19:55 
GeneralRe: how to recognize deleted contact in outlook Pin
M LN Rao26-Nov-07 21:45
M LN Rao26-Nov-07 21:45 
QuestionDeleting data from text file using C#.NET Pin
D i x y26-Nov-07 19:26
D i x y26-Nov-07 19:26 
GeneralRe: Deleting data from text file using C#.NET Pin
Paul Conrad8-Dec-07 5:35
professionalPaul Conrad8-Dec-07 5:35 
Questionabout accounting transaction Pin
keyto26-Nov-07 19:22
keyto26-Nov-07 19:22 
AnswerRe: about accounting transaction Pin
Pankaj - Joshi26-Nov-07 19:27
Pankaj - Joshi26-Nov-07 19:27 
AnswerAccounting Fundamental Link Pin
KennyPatel26-Nov-07 21:28
KennyPatel26-Nov-07 21:28 
QuestionNetwork path Access problem Pin
Nishad8526-Nov-07 19:20
Nishad8526-Nov-07 19:20 
AnswerRe: Network path Access problem Pin
Pankaj - Joshi26-Nov-07 19:26
Pankaj - Joshi26-Nov-07 19:26 
AnswerRe: Network path Access problem Pin
KennyPatel26-Nov-07 21:25
KennyPatel26-Nov-07 21:25 
QuestionHow to stop scrolling of form when we scroll any control that has scrollbars? Pin
CodeVarma26-Nov-07 19:02
CodeVarma26-Nov-07 19:02 
AnswerRe: How to stop scrolling of form when we scroll any control that has scrollbars? Pin
Sun Rays26-Nov-07 20:05
Sun Rays26-Nov-07 20:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.