Problem with binding using value converter

Hi, everyone!

I bind my custom control to a ListView's 'SelectedValue' property using a value converter which extracts the Row property from the selected DataRowView.

Now i want to do the two-way binding. But i can't figure out how to do the backward convertion. If the ConvertBack method just returns the 'value' parameter, obviously the ListView doesn't select anything. How can i find a corresponding DataRowView knowing the Row, or what else can i do to achieve the desired functionality?

Please help

Thanks

[550 byte] By [AntonYaroshchuk] at [2008-1-9]
# 1

Didn't anyone understand my problem?

Can anyone at least tell me how I can bind a ListView's SelectedValue to some control's property? That property is of type inherited from DataRow, so I can just retrieve the value of SelectedValue.Row in the Converter. But how can I get a DataRowView having a DataRow?

I really need your help

AntonYaroshchuk at 2007-10-3 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...

Visual Studio Orcas

Site Classified