private void ClientGrid_CellClick(object sender, DataGridViewCellEventArgs e) { //if(dataGridView1.Columns["AvailableJobs"].Selected) //{ // Console.WriteLine("clicked available jobs"); //} if (e.ColumnIndex.Equals(ClientGrid.Columns["AvailableJobs"]. Index)) { Console.WriteLine(String.Format("Row{0}, Col {1}", e.RowIndex, e.ColumnIndex)); JobViewerPresenter jobViewPresenter = new JobViewerPresenter(e.RowIndex); } }
public JobViewer(JobViewerPresenter tjobViewerPresenter) { InitializeComponent(); jobViewerPresenterInstance = tjobViewerPresenter; }