Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to edit cell to rename

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support
View previous topic :: View next topic  
Author Message
DaveRook



Joined: 10 Dec 2014
Posts: 4

PostPosted: Wed Dec 10, 2014 12:43 pm    Post subject: How to edit cell to rename Reply with quote

Hi

First off, I can't find any documentation for VirtualTree so sorry if this is covered.

Our VirtualTree works fine, we click mouse button 1 (lmb) and it allows us to edit. I now need to also add the ability via a right click context menu (so we can edit either way).

I'm lost as to what method I need to call... I am hoping to do

[code]
public void OnRename()
{
this.virtualTree.StartEditProcess();
}
[/code]

How do I start the "edit event" from my C# code?
Back to top
View user's profile Send private message
DaveRook



Joined: 10 Dec 2014
Posts: 4

PostPosted: Wed Dec 10, 2014 1:39 pm    Post subject: Reply with quote

And the answer is


[code] this.virtualTree1.EditFirstCellInFocusRow();[/code]
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Wed Dec 10, 2014 10:16 pm    Post subject: Reply with quote

Looks like you found the right answer.

The documentation for Virtual Tree can be accessed via the Windows Start menu under Start > Programs > Infralution > Virtual Tree 4 > Virtual Tree Help
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group