Home C C++ Java Python Perl PHP SQL JavaScript Linux Online Test Forum

Home » Forum » x-Forum » Question

How can I List align center in Datagrid in WPF

snippet code below

<DataGrid x:Name="dg" >
            
        </DataGrid>
        <Label Content="Name" HorizontalAlignment="Left" Margin="50,136,0,0" VerticalAlignment="Top"/>
        <Label Content="Address&#xD;&#xA;" HorizontalAlignment="Left" Margin="50,164,0,0" VerticalAlignment="Top"/>
        <TextBox Name="txtName" HorizontalAlignment="Left" Height="23" Margin="108,140,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="120"/>
        <TextBox Name="txtAddress" HorizontalAlignment="Left" Height="23" Margin="108,168,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="120"/>
        <Button Content="Add" HorizontalAlignment="Left" Margin="116,213,0,0" VerticalAlignment="Top" Width="75" Click="Button_Click"/>

Posted by sanjay.vaniya 2019-05-27 00:02:04

No Ans Posted

Please login to comment

Log In


Ask New Question