Click here to Skip to main content
15,903,203 members
Home / Discussions / C#
   

C#

 
Questiondouble buffering Pin
shvanisingh9-Jul-11 3:54
shvanisingh9-Jul-11 3:54 
AnswerRe: double buffering Pin
fjdiewornncalwe9-Jul-11 4:57
professionalfjdiewornncalwe9-Jul-11 4:57 
AnswerRe: double buffering Pin
OriginalGriff9-Jul-11 5:24
mveOriginalGriff9-Jul-11 5:24 
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 
I am trying to develop an application with list view having CheckBoxes and Multiple Selection property as TRUE.

Single Selection works perfectly. But when I try Multiple selection, check box of all the currently selected rows get changed on every selection (and sets to not of the check value of the new selection)

Am I missing any event that I need to handle???
Please help me guys!!!

Thanks in advance...

Although I haven't handle any event, I am still giving the code (I think it'll be irrelevant)

//////////////// listView Properties///////////////////////////////////<br />
 <br />
      <br />
      this.listView.CheckBoxes = true;<br />
      this.listView.FullRowSelect = true;<br />
      this.listView.HideSelection = false;<br />
      this.listView.UseCompatibleStateImageBehavior = false;<br />
      this.listView.View = System.Windows.Forms.View.Details;<br />
<br />
////////////////////////////////////////////////////////////////////////////<br />
<br />
public partial class Form1 : Form<br />
  {<br />
    public Form1()<br />
    {<br />
      InitializeComponent();<br />
<br />
      listView.Columns.Add("One", 100, HorizontalAlignment.Left);<br />
      listView.Columns.Add("Two", 100, HorizontalAlignment.Left);<br />
      listView.Columns.Add("Three", 100, HorizontalAlignment.Left);<br />
      listView.Columns.Add("Four", 100, HorizontalAlignment.Left);<br />
<br />
      for(int i = 0; i < 50; i++)<br />
      {<br />
        ListViewItem item = new ListViewItem();<br />
        item.Checked = true;<br />
        item.SubItems.Add("Garbage1");<br />
        item.SubItems.Add("Garbage2");<br />
        item.SubItems.Add("Garbage3");<br />
        listView.Items.Add(item);<br />
      }<br />
    }<br />
  }<br />


IMP:- This is happening only when I am clicking column other than the first one for selection...

modified on Saturday, July 9, 2011 5:39 AM

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 
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 

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.