会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
高原之上
博客园
首页
新随笔
新文章
联系
管理
订阅
TreeList 节点拖曳
/**/
///
<summary>
///
拖曳节点并保存结果
///
</summary>
///
<param name="sender"></param>
///
<param name="e"></param>
private
void
treelArea_DragDrop(
object
sender, DragEventArgs e)
{
TreeListNode fNode;
TreeListNode tNode;
string
parentId;
string
regId;
try
{
fNode
=
(e.Data.GetData(
typeof
(TreeListNode)))
as
TreeListNode;
//
数据来源节点
tNode
=
this
.treelArea.CalcHitInfo(
this
.treelArea.PointToClient(
new
Point(e.X, e.Y))).Node;
//
目标节点
if
(fNode
!=
null
&&
tNode
!=
null
)
{
parentId
=
tNode.GetValue(
"
RegID
"
).ToString().Trim();
regId
=
fNode.GetValue(
"
RegID
"
).ToString().Trim();
if
(parentId.Length
>
0
&&
regId.Length
>
0
)
{
areaSetupActionHelper.updateParentId(regId, parentId);
//
修改parentId;
GridViewBindData(regId);
//
刷新GrieView中的数据;
}
}
}
catch
(Exception ex)
{
MyDialog.Alert(ex.Message,
"
拖曳时发生异常
"
);
}
}
posted on
2007-08-24 10:00
高原之上
阅读(
607
) 评论(
1
)
编辑
收藏
举报
会员力量,点亮园子希望
刷新页面
返回顶部
公告