0

I am getting the result in table from my query say as Resulteddata.
it has six column say urlpath,name,title,description,modifieddate,createddate.
i want to display one of the column say "name" as linkcolumn and rest as normal so that clicking on name will linked to the urlpath column and will display the urlpath on other tab.
how to achieve that my code is below.
in c# windows application.

OleDbConnection con = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\\foldername\\databasename.mdb");
            OleDbCommand cmd = new OleDbCommand();
            cmd.CommandText = "select * from Resulteddata";
            cmd.Connection = con;
            OleDbDataAdapter da = new OleDbDataAdapter();
            da.SelectCommand = cmd;
            DataTable dt = new DataTable();
            da.Fill(dt);
            dataGridView1.DataSource = dt;

how to make the name column as linkcolumn in datagridview in c# windows application.

2
Contributors
1
Reply
3
Views
6 Years
Discussion Span
Last Post by ddanbe
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.