使用TreeList.MoveNode方法
关键代码:
TreeListNode nodOrigem = null ;
TreeListNode nodDestino = null ;
private void btnRecortar_Click(object sender, EventArgs e)
{
nodOrigem = tvwDados.Selection[0];
}
private void btnColar_Click(object sender, EventArgs e)
{
nodDestino = tvwDados.Selection[0];
try
{
int de = tvwDados.GetNodeIndex( nodDestino);
tvwDados.MoveNode(nodOrigem, nodDestino);
}
catch (Exception ex)
{
throw ex;
}
}
欢迎任何形式的转载,但请务必注明出处,尊重他人劳动成果
转载请注明:文章转载自:DevExpress控件中文网 [https://www.devexpresscn.com/]
本文地址:https://www.devexpresscn.com/post/134.html