Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
i have a datagrid of 4 columns in that each column has 8 values.first column is non-editable and other three are editable and are textboxes. so my requirement is in first row i have 3 text boxes , and all the threee textboxes should accepts the same pattern of input.

What I have tried:

<pre><DataTrigger Binding="{Binding Name}" Value="Direct Signal Mean (DB) (-∞ to ∞)">
    <Setter Property="Style" Value="{StaticResource TextBox_PreviewTextInput2Style}"/>
</DataTrigger>
<DataTrigger Binding="{Binding Name}" Value="Direct Signal Std Dev (DB) (0 to ∞)">
    <Setter Property="Style" Value="{StaticResource TextBox_PreviewTextInput2Style}"/>
</DataTrigger>
<DataTrigger Binding="{Binding Name}" Value="RMS Multipath Power (DB) (-∞ to ∞)">
    <Setter Property="Style" Value="{StaticResource TextBox_PreviewTextInput2Style}"/>
</DataTrigger>
<DataTrigger Binding="{Binding Name}" Value="No. of Direct Signal Oscillators (0 to ∞)">
    <Setter Property="Style" Value="{StaticResource TextBox_PreviewTextInput2Style}"/>
</DataTrigger>
<DataTrigger Binding="{Binding Name}" Value="No. of Multipath Oscillator (0 to ∞)">
    <Setter Property="Style" Value="{StaticResource TextBox_PreviewTextInput2Style}"/>
</DataTrigger>
<DataTrigger Binding="{Binding Name}" Value="Direct Signal Doppler (Hz) (0 to ∞)">
    <Setter Property="Style" Value="{StaticResource TextBox_PreviewTextInput2Style}"/>
</DataTrigger>
<DataTrigger Binding="{Binding Name}" Value="Multipath Doppler (HZ) (0 to ∞)">
    <Setter Property="Style" Value="{StaticResource TextBox_PreviewTextInput2Style}"/>
</DataTrigger>
<DataTrigger Binding="{Binding Name}" Value="Initial Probability (0.0 to 1.0)">
    <Setter Property="Style" Value="{StaticResource TextBox_PreviewTextInput2Style}"/>
</DataTrigger>
Posted
Comments
Graeme_Grant 20-Sep-23 9:36am    
"I want" .. we are not here to write your code for you. If you want someone to write code for you, then there are these services:
* fiverr[^]
* Upwork[^]
* Freelancer[^]
* Guru[^]
* PeoplePerHour[^]
* TaskRabbit[^]
* Karat[^]
[no name] 20-Sep-23 12:18pm    
I think your first mistake was using a "datagrid" for a handful of textboxes.
Graeme_Grant 25-Sep-23 2:38am    
A bit like using an elephant gun to kill a mouse!

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