Click here to Skip to main content
15,914,163 members
Home / Discussions / C#
   

C#

 
AnswerRe: double buffering Pin
Pete O'Hanlon9-Jul-11 6:31
mvePete O'Hanlon9-Jul-11 6:31 
Questionclass with dynamic property Pin
mehrdadc488-Jul-11 21:14
mehrdadc488-Jul-11 21:14 
AnswerRe: class with dynamic property Pin
Abhinav S8-Jul-11 21:31
Abhinav S8-Jul-11 21:31 
AnswerRe: class with dynamic property Pin
Pete O'Hanlon8-Jul-11 22:18
mvePete O'Hanlon8-Jul-11 22:18 
QuestionCheckBox ListView Multiple Selection Problem c# [modified] Pin
varunpandeyengg8-Jul-11 4:52
varunpandeyengg8-Jul-11 4:52 
AnswerRe: CheckBox ListView Multiple Selection Problem c# Pin
Shahriar Iqbal Chowdhury/Galib8-Jul-11 11:07
professionalShahriar Iqbal Chowdhury/Galib8-Jul-11 11:07 
GeneralRe: CheckBox ListView Multiple Selection Problem c# Pin
varunpandeyengg8-Jul-11 20:58
varunpandeyengg8-Jul-11 20:58 
AnswerRe: CheckBox ListView Multiple Selection Problem c# Pin
DaveyM699-Jul-11 0:53
professionalDaveyM699-Jul-11 0:53 
This is the correct behaviour. Selecting an item should not change it's checked state. If it did then the check box would be useless as it would only be a reflection of the selected state which is already indicated by the focus rectangle.

To get the behaviour you desire, handle the ListView's Click event:
C#
private void listView_MouseClick(object sender, MouseEventArgs e)
{
    foreach (ListViewItem item in listView.Items)
        item.Checked = item.Selected;
}

By the way, the inline code widget is for code written inline like this. The code block widget is for
blocks of code
like this

Dave

Binging is like googling, it just feels dirtier.
Please take your VB.NET out of our nice case sensitive forum.
Astonish us. Be exceptional. (Pete O'Hanlon)

BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)



GeneralRe: CheckBox ListView Multiple Selection Problem c# Pin
varunpandeyengg10-Jul-11 21:18
varunpandeyengg10-Jul-11 21:18 
AnswerRe: CheckBox ListView Multiple Selection Problem c# Pin
varunpandeyengg11-Jul-11 1:00
varunpandeyengg11-Jul-11 1:00 
QuestionData in the gridview cell should get select Pin
NarVish8-Jul-11 0:54
NarVish8-Jul-11 0:54 
AnswerMessage Removed Pin
8-Jul-11 3:07
0bx8-Jul-11 3:07 
GeneralRe: Data in the gridview cell should get select Pin
Not Active8-Jul-11 3:35
mentorNot Active8-Jul-11 3:35 
AnswerRe: Data in the gridview cell should get select Pin
Rhys Gravell8-Jul-11 3:24
professionalRhys Gravell8-Jul-11 3:24 
AnswerRe: Data in the gridview cell should get select Pin
Carmelo La Monica8-Jul-11 6:18
professionalCarmelo La Monica8-Jul-11 6:18 
QuestionProblem wirh Response.End() while exporting Datatable results to Excel file. Pin
madhubabu7-Jul-11 7:52
madhubabu7-Jul-11 7:52 
AnswerRe: Problem wirh Response.End() while exporting Datatable results to Excel file. Pin
Not Active7-Jul-11 8:54
mentorNot Active7-Jul-11 8:54 
AnswerRe: Problem wirh Response.End() while exporting Datatable results to Excel file. Pin
Pete O'Hanlon7-Jul-11 23:01
mvePete O'Hanlon7-Jul-11 23:01 
QuestionHow connect to DB from c# Pin
DreadBoy57-Jul-11 6:42
DreadBoy57-Jul-11 6:42 
AnswerRe: How connect to DB from c# Pin
Eddy Vluggen7-Jul-11 6:46
professionalEddy Vluggen7-Jul-11 6:46 
AnswerRe: How connect to DB from c# Pin
Abhinav S7-Jul-11 7:35
Abhinav S7-Jul-11 7:35 
AnswerRe: How connect to DB from c# Pin
PIEBALDconsult7-Jul-11 14:33
mvePIEBALDconsult7-Jul-11 14:33 
AnswerRe: How connect to DB from c# Pin
dbongs7-Jul-11 20:54
dbongs7-Jul-11 20:54 
AnswerRe: How connect to DB from c# Pin
RaviRanjanKr10-Jul-11 10:57
professionalRaviRanjanKr10-Jul-11 10:57 
QuestionConversion of varchar datatype to a datetime resultant in an out renge value- Sql Server 2008 - Update Pin
Paramu19737-Jul-11 2:15
Paramu19737-Jul-11 2:15 

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.