作成日: 2014/10/24 最終更新日: 2014/10/24
文書種別
使用方法
詳細
グリッドの最下部にデフォルトで新規行バーが表示され、実行時、グリッドに行を追加することができます。
◎デフォルト表示

この新規行バーに表示される文字列を変更するには、C1DataGridのNewRowStyleを使用し、DataGridNewRowPresenterのWatermarkTextプロパティの値を変更します。
◎サンプルコード(XAML)
◎サンプルコードの実行結果

◎デフォルト表示

この新規行バーに表示される文字列を変更するには、C1DataGridのNewRowStyleを使用し、DataGridNewRowPresenterのWatermarkTextプロパティの値を変更します。
◎サンプルコード(XAML)
<c1:C1DataGrid x:Name="c1DataGrid1" CanUserAddRows="True" Grid.Row="1">
<c1:C1DataGrid.NewRowStyle>
<Style TargetType="c1:DataGridNewRowPresenter">
<Setter Property="WatermarkText" Value="新規行バーのカスタマイズ" />
</Style>
</c1:C1DataGrid.NewRowStyle>
</c1:C1DataGrid>
<c1:C1DataGrid.NewRowStyle>
<Style TargetType="c1:DataGridNewRowPresenter">
<Setter Property="WatermarkText" Value="新規行バーのカスタマイズ" />
</Style>
</c1:C1DataGrid.NewRowStyle>
</c1:C1DataGrid>
◎サンプルコードの実行結果

旧文書番号
81025