View previous topic :: View next topic |
Author |
Message |
flc.net
Joined: 21 Jun 2005 Posts: 89 Location: Switzerland
|
Posted: Wed Jan 04, 2006 1:34 pm Post subject: Problem with FindRowByIndex |
|
|
Hello Support
I use VT as a ListView. I have a Data View Binding to the DataTable "Supplier" and a Data Row Binding to the same Table.
I try to set the SelectedRow manually by FindRowByIndex, but this don't work.
Code: |
int[] path = {3};
Row dummy = treSupplier.FindRowByIndex(path);
treSupplier.SelectedRow = dummy;
|
The Row with the Index 3 exists, but FindRowByIndex returns always null.
Thanks for you Help.
Best Regards
Giuseppe |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Wed Jan 04, 2006 10:48 pm Post subject: |
|
|
I have just modified the Data Browser sample to add a menu item that selects the third row using the same code that you posted. This works without any problems. I also changed the bindings so that it was a simple list view of customers - still no problems.
There must be something else going on here. When are you trying to call FindRowByIndex? If you can send us a sample project that demonstrates the problem that would help work out what might be happening. _________________ Infralution Support |
|
Back to top |
|
|
flc.net
Joined: 21 Jun 2005 Posts: 89 Location: Switzerland
|
Posted: Thu Jan 05, 2006 7:53 am Post subject: |
|
|
I can not reproduce the same behaviour in a sample App. I will investigate on my Real App.
Regards
Giuseppe |
|
Back to top |
|
|
|