Click here to Skip to main content
15,894,460 members
Please Sign up or sign in to vote.
2.33/5 (3 votes)
See more:
XML
<dxe:TextEdit Name="txtCompanyName" my:FilterGrid.Obj ="{Binding ElementName=dXCustomers}"
                     my:FilterGrid.ConditionValue="{Binding RelativeSource={RelativeSource Self}, Path=Text, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                     my:FilterGrid.ColumnName="CompanyName"
                     my:FilterGrid.Operator="Like"  />
Posted
Updated 6-Jul-11 22:04pm
v2

Looks like you have some custom namespaces there, but TextEdit appears to contain the FilterGrid, so you can set those properties directly on that object.

Here[^] is an example of setting a binding with code, I found it with google.
 
Share this answer
 
Which part are you having trouble with? I assume the bindings, so maybe something like this
TextEdit textedit = ...;

Binding binding = new Binding();
binding.ElementName = "dXCustomers";
textedit.SetBinding([somedependencyproperty], binding);

binding = new Binding("Text");
binding.RelativeSource = new RelativeSource(RelativeSourceMode.Self);
binding.Mode = BindingMode.TwoWay;
binding.UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged;
textedit.SetBinding([somedependencyproperty], binding);
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900