Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Looping thru checkbox

Status
Not open for further replies.

Gandalf23

Programmer
Apr 9, 2002
128
NL
I have a Grid which has a DataView bound to it. The first column is a CheckBoxColumn. When a user RightClicks the grid a contextmenu shows up [Check, Uncheck].

If a user clicks on Check, all the CheckBoxColumn are being checked. But the cell which is selected on that moment isn't. I looked if it is a refresh problem, it's not. Any ideas?

Greetings,

Gandalf.
 
Code:

Code:
private void VinkjesAanUit(Boolean bAan)
{
  if (this.dsExport != null)
  {   			
    for (int i=0; i <this.dsExport.Tables&quot;Besluit&quot;].Rows.Count;i++)
    {
	this.dsExport.Tables[&quot;Besluit&quot;].Rows[i][&quot;Export&quot;] = bAan;
    }
  }
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top