Главная страница | назад





Article #28070: How can I avoid expanding a tree node when double-clicking on it?

Question


How can I avoid expanding a tree node when double-clicking on it?

Answer


Handle the OnExpanding event. Use the Node parameter to determine if it's a leaf or not (i.e. Node.Level or Node.HasChildren). Also look at GetHitTestInfoAt to determine where the double click occurred because you will want to allow expanding when the user clicks the +.

Last Modified: 13-DEC-01