<datagrid x:class="MyGrid" xmlns:x="#unknown"> xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:local="clr-namespace:NewGrid" mc:Ignorable="d" d:DesignHeight="180.397" d:DesignWidth="320.354" removed="{x:Null}" AutoGenerateColumns="False" ColumnHeaderHeight="25" RowHeaderWidth="20" ClipboardCopyMode="IncludeHeader" SelectionMode="Single" SelectionUnit="Cell" EnableRowVirtualization="False" HeadersVisibility="None" CanUserAddRows="False" > </datagrid>
Private Sub MyGrid_Loaded(sender As Object, e As RoutedEventArgs) Handles Me.Loaded Me.Items.Add(Me.Items()) ' Used to add an empty row on start End Sub Private Sub MyGrid_PreviewKeyDown(sender As Object, e As KeyEventArgs) Handles Me.PreviewKeyDown If m_AddRow = True Then Me.Items.Add(Me.Items()) End If End Sub
Items
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)