Click here to Skip to main content
15,891,567 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi Guys, I tried to solve the my requirement. I have a DataGrid in winforms. in that datagrid one checkbox column and another few columns. When we uncheck the checkbox in datagrid , clear the remaining column values of Same Row.
Posted
Updated 16-Oct-12 20:10pm
v2

1 solution

use datagridview's CurrentCellDirtyStateChange Method

apply condition,
VB
if dgv.currentcell.columnindex=1 then 'use checkbox column's index
    if dgv.currentcell.value= false then
       dgv.currentrow.cells(2).value="" 'make empty that row's cell  
    end if
end if

Happy Coding!
:)
 
Share this answer
 
Comments
CH Guravaiah 17-Oct-12 2:40am    
thanks for reply.
Aarti Meswania 17-Oct-12 2:41am    
welcome!
Glad to help you!
:)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900