0

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?

screenshot

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
  • 2
    Its 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 Answers1

2

There is actually no such event in a DataGridView. You can search the msdn help. Use SelectionChanged event instead.

h8red
  • 713
  • 4
  • 17