Click here to Skip to main content
16,018,904 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have one datagridview. and one button name toggle.in that particular data grid there are 12 rows named as booktitle,type,category,author,isbn,publishername,edition,quantity,requested date, expected date,requested by and status.

status should be processed and unprocessed.

now my question is

when i click toggle button,then selected grid should be processed in status ,again when i click same toggle button ,same selected grid should be unprocessed.


help me out
Posted
Comments
Sergey Alexandrovich Kryukov 13-Jul-11 23:50pm    
Very, very vague. Use "Improve question".
--SA

1 solution

I have no idea what you mean by "processed" and "unprocessed", but if I understand your problem, it sounds like you need to save the state of either the button or the grid, which ever makes most sense in your application. You can perhaps use the Tag parameter that's available for most objects or you can create your own variable. Then whenever the button is clicked you can check the state of your variable, "process" or "unprocess," and save the changed state for next button click.
 
Share this answer
 

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