Click here to Skip to main content
15,918,343 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
What is the purpose of SelectionChanged event in the DataGridView using C# ?
Posted
Updated 9-Nov-11 1:56am
v2

if row selection is "on", the event will help you identify the selected row. and will allow you to perform some operations on the event.
 
Share this answer
 
v2
Comments
Sam Path 9-Nov-11 8:00am    
ok sir thanks for your Reply :)
It allows you to do some processing when a user leaves a row in the datagridview. Just say you had a total column in the dgv that was the sumn of other column values, then when the user is finished editing the othercolumns and leaves the row, you can use that event to total the edited columns, and populate the total column with the result.

Haave a look at the MSDN docs[^] for this event. They have a good sample.

Hope this helps
 
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