How can i open the file when windows(c#) datagridview items in are clicked?
Hi everybody,
I want to know how can we open the file when the items in datagridview are clicked ... I am using xml as datasource in win appln...
Hope i ll get my result...
Thanks all...
With Regards
Raman.C
Vimal KandasamyPosted Jun 2, 2009, 3:14 AM
like
{Process.Start("filepath");Feroz KhanPosted Mar 18, 2015, 2:09 PM
how can i sort out list box value by modified date in C#..
Regards,
Feroz
Vimal KandasamyPosted Jun 2, 2009, 4:11 AM
String filepath =dataGridView1.CurrentCell.Value.ToString();
or if it stored in any one cell of clicked row means
try
String filepath = dataGridView1.CurrentRow.Cells[index].Value.ToString();
here index will be your columnindex 0 or 1 or 2...based on filepath cell column index.
Raman RajeshPosted Jun 2, 2009, 3:42 AM