如何将数据从gridcontrol发送到mapcontrol? [英] How do I send data from gridcontrol to the mapcontrol?

查看:64
本文介绍了如何将数据从gridcontrol发送到mapcontrol?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好......我在我的项目中使用了gridview1,并且在同一个表单上有一个MapControl。顺便说一下,我在地图上使用BingMaps应用程序。现在我想做。当我点击Gridview1行时,该列中城市的名称将显示在mapcontrol上。



我该怎么做...请举个例子!< br $> b $ b

我尝试过:



Hi Everyone...I'm using in my project a gridview1 and there is one MapControl on the same form. by the way I'm use the BingMaps application on the map. Now I want to do it. When I click on the Gridview1 row the name of the city in that column is shown on the mapcontrol.

How can I do that..Please give an example!

What I have tried:

string DepPlace = gridView1.GetFocusedRowCellValue("DepPlace").ToString()

推荐答案

在地图上显示Bing结果 [ ^ ]


这篇关于如何将数据从gridcontrol发送到mapcontrol?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆