Click here to Skip to main content
15,895,667 members

Comments by IsoftTech (Top 2 by date)

IsoftTech 3-Jul-14 9:12am View    
Tnx George, I appreciate your comment. But I still can't get the real picture yet. Am completely new in c# so I think a real working example will go a long way in helping me out of this challenge at the moment.
Below here is my xaml code:

<window x:class="NewDataGridApp.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:c="clr-namespace:NewDataGridApp" title="MainWindow" height="350" width="525">
<grid>
<grid.rowdefinitions>
<rowdefinition>
<rowdefinition>
<rowdefinition>

<datagrid grid.row="0" x:name="Newdg" autogeneratecolumns="False">
<datagrid.columns>
<datagridtextcolumn header="FileName" width="*">
<datagridtextcolumn header="Prefix" width="*">
<datagridtextcolumn header="Sign" width="*">
<datagridtextcolumn header="Bin" width="*">
<datagridtextcolumn header="FolderPath" width="*">


<Button Grid.Row="1" Content="Button" HorizontalAlignment="Left" Margin="207,59,0,0" VerticalAlignment="Top" Width="75" Height="22" RenderTransformOrigin="0.5,0.5">
</Button>



Kindly help plz.
Thanks
IsoftTech 20-Jun-14 3:16am View    
Thanks Anshumaan, I followed up with the link you posted but what I saw was how to retreive data from a database and display it on a datagrid.

But in my case,I've actually created some columns on my datagrid already, so I want a situation whereby users can enter data into the cells/rows of these columns and save it into the database.

I hope my problem definition is clearer now.

Thanks in anticipation.