El Tabelle MultiRow 4.0JのTemplate.Cells.Clearメソッドに相当する機能はありますか?

文書番号 : 38736     文書種別 : 技術情報     登録日 : 2015/06/24     最終更新日 : 2015/06/24
文書を印刷する
対象製品
MultiRow for Windows Forms 8.0J
詳細
対応する機能はありません。下記のようなコードでテンプレートの各セルの値をクリアすることでご対応ください。

[Visual Basic]
Imports GrapeCity.Win.MultiRow

' テンプレートの取得
Dim template1 As Template = GcMultiRow1.Template
' テンプレートのセルの値のクリア
For Each c As Cell In template1.Row.Cells
    If Not TypeOf c Is HeaderCell Then
        c.Value = Nothing
    End If
Next

GcMultiRow1.Template = template1

[C#]
using GrapeCity.Win.MultiRow;

// テンプレートの取得
Template template1 = gcMultiRow1.Template;
// テンプレートのセルの値のクリア
foreach (Cell c in template1.Row.Cells)
{
    if (!(c is HeaderCell))
    {
        c.Value = null;
    }
}

gcMultiRow1.Template = template1;