Tuesday, 20 August 2013

DataGridView e.columnindex not working

DataGridView e.columnindex not working

private void moviesGridView_CellContentClick(object sender,
DataGridViewCellEventArgs e)
{
MovieDetailsForm form = new
MovieDetailsForm(MovieDetailsForm.MovieViewMode.Read);
if (e.ColumnIndex==5)
{
form.ShowDialog();
}
}
I am trying to view the details of a movie when i press the view details
button in the datagridview but for some reason i cant get it to work. the
place of the buttons in the datagridview is 5.
i'd show a ss but unfortunately i cant, yet.

No comments:

Post a Comment