View previous topic :: View next topic |
Author |
Message |
Tosha Guest
|
Posted: Wed Jun 14, 2006 4:57 pm Post subject: How can I select rows proramaticly |
|
|
I want to select rows from code.
For example I want to select rows with errors. |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Wed Jun 14, 2006 10:27 pm Post subject: |
|
|
Yes you can select rows programatically. The simplest way is to set the SelectItems property to a list of those items displayed in the rows you want selected. This requires you to have properly setup the Parent property in your RowBindings (or handled the GetParent event) so that Virtual Tree is able to locate the row that corresponds to a given item. An alternative is to add/remove or clear the selection using SelectedRows collection property. This requires you to first find the rows using FindRow or FindRowByIndex. _________________ Infralution Support |
|
Back to top |
|
|
|