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 

HowTo select Row with CheckBox

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



Joined: 21 Jun 2005
Posts: 89
Location: Switzerland

PostPosted: Fri Aug 26, 2005 11:31 am    Post subject: HowTo select Row with CheckBox Reply with quote

Hello Support

I have an implementation analog the "File Browser Sample".

If a user check/uncheck the CheckBox I want select the Row. How Can I implement this behaviour?

Thanks and Nice Week
Giuseppe
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Sat Aug 27, 2005 12:01 am    Post subject: Reply with quote

Simply select the row in the SetCellValue event (or in the SetValueForCell method if you are deriving from VirtualTree). If you are using row bindings you also need to call the standard RowBinding method to set the cell value eg

Code:
private void _virtualTree_SetCellValue(object sender, SetCellValueEventArgs e)
{
    _virtualTree.SelectedRow = e.Row;
    RowBinding binding = _virtualTree.GetRowBinding(e.Row);
    binding.SetCellValue(e.Row, e.Column, e.OldValue, e.NewValue);
}

_________________
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