# DataGridView - CheckBoxColumn

**URL:** <https://forums.powershell.org/t/datagridview-checkboxcolumn/1296>\
**Category:** PowerShell Help\
**Created:** [December 31, 2011, 6:30pm UTC](https://forums.powershell.org/t/datagridview-checkboxcolumn/1296 "2011-12-31T18:30:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![archives](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@archives](https://forums.powershell.org/u/archives)\
**Post date:** [December 31, 2011, 6:30pm UTC](https://forums.powershell.org/t/datagridview-checkboxcolumn/1296/1 "2011-12-31T18:30:00Z")

</div>

by TomKemp at 2012-12-21 06:46:09

> I have a script which displays an AD group from a list and then lists the members of that group and the groups of which it is a member. This part works correctly.  
>   
> The information is displayed on a DataGridView, with columns for the User ID and the Displayname, plus a third column which is a CheckBoxColumn.  
>   
> The idea is to check the box alongside certain members and then click a button to delete those members from the group.  
>   
> My problem is that I cannot find any way to determine which rows have the checkbox checked.  
> I can determine which row is currently selected (the highlighted one), but not which ones have the checkbox checked.  
>   
> Any idea how to do this please?  
>   
> Something like:  
>   
> For Each row with the checkbox checked, delete the User or group object from the initial group.  
>   
> There must be some way to determine which boxes are checked, or there would not be any point in offering such columns.  
>   
> Any ideas please?  
>   
>   
> Also - is there any source of detailed information on the use of Windows Forms which is aimed at the use of Powershell rather than only with C# or VB?

by DonJ at 2012-12-21 06:48:49

> This is _really_ a .NET Framework / WinForms / WPF question; I’d suggest asking at [StackOverflow.com](http://StackOverflow.com). You’ll find a lot more .NET developers there. I’m not aware of any more-detailed resources specific to PowerShell except what the SAPIEN guys are blogging in relation to their PowerShell Studio product, which uses WinForms.

by TomKemp at 2012-12-21 07:50:52

> Thanks - I will take a look there.

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:58pm UTC](https://forums.powershell.org/t/datagridview-checkboxcolumn/1296/2 "2024-05-16T20:58:10Z")

</div>


