I am using Visual Studio Professional 2012, and I am working on a Windows Forms Application. While working with the datagrid view, the selectedIndexChanged
Event is not available in the list of available events. How can I implement this event?
Asked
Active
Viewed 134 times
0

twernt
- 20,271
- 5
- 32
- 41

Ankit Goud
- 17
- 3
-
This by yours truly... http://stackoverflow.com/questions/29280864/what-makes-it-so-that-not-every-event-is-available-in-the-designer-and-how-can – rory.ap Mar 11 '16 at 14:01
-
2Its because it doesn't have `SelectedIndexChanged` event. What's your requirement? Do you need [`SelectionChanged`](https://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.selectionchanged(v=vs.110).aspx) event? – Reza Aghaei Mar 11 '16 at 14:12
1 Answers
2
There is actually no such event in a DataGridView. You can search the msdn help. Use SelectionChanged event instead.

h8red
- 713
- 4
- 17
-
This answer needs improvement. As it stands, it's a low quality answer that will probably be deleted. – rory.ap Mar 11 '16 at 14:17
-
@roryap: Not only it is an acceptable answer, it answers and solves the question of the OP. Why do you say that? – Ignacio Soler Garcia Mar 11 '16 at 14:34