private void FrmCorporateCandidateReport_Load(object sender, EventArgs e) { //Create instance for datagrid view link column class DataGridViewLinkColumn link = new DataGridViewLinkColumn(); link.UseColumnTextForLinkValue = true; //Enter your link button column header text link.HeaderText = "Click to View Details"; //set the property name for link column link.DataPropertyName = "lnkColumn"; //set default active color for link link.ActiveLinkColor = Color.White; link.LinkBehavior = LinkBehavior.SystemDefault; //set default link color link.LinkColor = Color.Blue; //set default link text link.Text = "View Details"; //set visited color means if user click that link what color would be change link.VisitedLinkColor = Color.YellowGreen; //Add this link column to datagrid view dataGridView1.Columns.Add(link); } private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (e.ColumnIndex == 0) { Process myProc; myProc = Process.Start("C:\\Resumeupload\\txtdestinationpath.docx"); //string[] files = Directory.GetFiles(@"C:\\Resumeupload", "count*.docx"); //myProc.CloseMainWindow(); } else { //MessageBox.Show("No Record Found"); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)