View previous topic :: View next topic |
Author |
Message |
flc.net
Joined: 21 Jun 2005 Posts: 89 Location: Switzerland
|
Posted: Fri Aug 26, 2005 11:31 am Post subject: HowTo select Row with CheckBox |
|
|
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 |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Sat Aug 27, 2005 12:01 am Post subject: |
|
|
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 |
|
|
|