How can I add values in a specific column for every row in wpf?
<p>I am a new bee in the world of wpf programming this is my first ever post here. I have been learning a lot through the stackoverflow platform (thanks to each and every individual here). My current problem is making me bang my head on a wall as I am not able to find a solution for it.
I am doing a project in which I populate a datagrid from an oracle query result using data set as ItemsSource of the datagrid.
It works fine but the problem is, I want to have an "<strong>additional column</strong>"  in my datagrid (in other words I want to add a column manually). This column is not being populated by the dataset. Instead, I want to add/insert values in the manually added column based on one of the auto-populated column.</p>

<p>For example: if I have a value "<strong>A6</strong>" in column1, the manually added column should display "<strong>Actuator</strong>" in the correspondent cell.
Please help me with any possible solution you know. I'd be grateful!!
Idk if my question made any sense or is it too broad. Bear with me if you can't understand anything and feel free to ask. Thank you.</p>

<p>My XAML:</p>

<pre><code>&lt;DataGrid x:Name="datagrid1" FontSize="12" FontWeight="Bold" IsReadOnly="True" 
                    SelectionUnit="FullRow" SelectionMode="Single"                               
                    VerticalAlignment="Bottom" HorizontalAlignment="Left" Height="Auto" Width="985" Margin="1,5,0,0"
                    CanUserResizeColumns="True" CanUserDeleteRows="False" CanUserAddRows="False" CanUserResizeRows="False" RowHeight="30"
                    CanUserReorderColumns="False" CanUserSortColumns="False" ColumnHeaderHeight="30" ColumnWidth="*"&gt;
</code></pre>

<p></p>

<p>My Codebehind:</p>

<pre><code>using (OracleCommand cmd = new OracleCommand("SELECT this, that, these, FROM table "
                                                     + "WHERE somecolumn=:somecolumn", connection))
        {
            cmd.CommandType = CommandType.Text;
            OracleParameter parm = new OracleParameter();
            cmd.Parameters.Add("somecolumn", input.Text);
            OracleDataAdapter oda = new OracleDataAdapter(); 
            oda.SelectCommand = cmd;
            DataSet ds = new DataSet(); 
            oda.Fill(ds, "table");
            datagrid1.ItemsSource = ds.Tables["table"].DefaultView;
            DataGridTextColumn column = new DataGridTextColumn(); //here I am able to add the column to the datagrid but not able to insert values in this column             
            datagrid1.Columns.Add(column);
</code></pre>