Click here to Skip to main content
15,747,637 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to set a AutocompletBox inside one of the column of the datagrid, and there after I want to call a method on changing of that text, this will change the data of other columns of that particular row.

I have tried several ways but everytime a new exception is coming,
Is anybody did this type of work?


Thanks in advane
Posted

1 solution

Below is the solution of my own question you can try this

XML
<DataGrid Height="100" HorizontalAlignment="Left" Margin="12,0,0,0" Name="dataGrid2" VerticalAlignment="Top" Width="479" ItemsSource="{Binding}" TextInput="dataGrid1_TextInput" AutoGenerateColumns="False" Grid.Row="3" >
    <DataGrid.Columns>
        <DataGridTemplateColumn Header="Country" Width="100"  >
            <DataGridTemplateColumn.CellTemplate>
                <DataTemplate>
                    <toolkit2:AutoCompleteBox  Name="autoComplete"  Width="300" Height="30" Margin="0" ItemsSource="{Binding lstStrState}" SelectionChanged="autoComplete_SelectionChanged"></toolkit2:AutoCompleteBox>
                </DataTemplate>
            </DataGridTemplateColumn.CellTemplate>
        </DataGridTemplateColumn>
    </DataGrid.Columns>
</DataGrid>
 
Share this answer
 

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