Click here to Skip to main content
14,826,447 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I have question for you have a project form for desktop app. now I edited to bingmaps so.. How can I do this? When I click on the table row, the city in the cell is shown on top of the map.

What I have tried:

I have question for you have a project form for desktop app. now I edited to bingmaps so.. How can I do this? When I click on the table row, the city in the cell is shown on top of the map.
Posted
Comments
Maciej Los 22-Jun-18 8:47am
   
What have you tried till now?
Member 4425308 22-Jun-18 18:52pm
   
string DepPlace = gridView1.GetFocusedRowCellValue("DepPlace").ToString(); //Origin
string ArrPlace = gridView1.GetFocusedRowCellValue("ArrPlace").ToString(); //Destination
connection.Open();
SqlCommand sqlCommand = new SqlCommand("Select *from mapControl1 where DepPlace=@d1", baglanti);
SqlDataAdapter dataAdapter = new SqlDataAdapter(sqlCommand);
sqlCommand.Parameters.AddWithValue("@d1", DepPlace);
DataTable table = new DataTable();
dataAdapter.Fill(table);
gridControl1.DataSource = table;
connection.Close();

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900