Click here to Skip to main content
15,868,141 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
Hi All,
How can we do some operations on selection changed in Data Grid View in WinForms.
I tried, DataGridView_SelectionChanged(...) but it make it complex in the data load too.
How Can I avoid this thing ?
Need suggestions.
Thanks

Regards,
Itz.Irshad
Posted
Updated 9-Jul-12 1:28am
v2
Comments
[no name] 9-Jul-12 7:30am    
After performing an exhaustive analysis of the code you submitted that describes your problem I have come to the conclusion that you might be able to solve your problem using a simple boolean flag.
Sandeep Mewara 9-Jul-12 7:33am    
This is not a well framed question! We cannot work out what you are trying to do/ask from the post. Please elaborate and be specific.
Use the "Improve question" link to edit your question and provide better information.

Elaborate on what operation you are trying. What is looking complex to you.
Itz.Irshad 9-Jul-12 7:37am    
Dear Aday and Sandeep,
Thanks for consideration. Well, I got solve this. Its an issue on selection changed event. Here is elaboration:
I have a Data Grid View in WinForm Application.
Now, I want to get selected row's specific column values (e.g. row 2 and column 3) in a text box on that form.
I hope you'll got what I mean to say.

Thanks
sahabiswarup 10-Jul-12 14:44pm    
have you tried cell click event in datagrid??

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