デザイナによる設定
- 行(Row)にイメージ型セルを追加する。(例:imageCell1)
- imageCell1を選択し、プロパティウィンドウでimageCell1.Style.NullValueプロパティに任意の画像を設定する。
コーディングによる設定
Imports GrapeCity.Win.MultiRow Dim Template1 As Template = New Template() Dim ColumnHeaderSection1 As ColumnHeaderSection = New ColumnHeaderSection() Dim ColumnHeaderCell1 As ColumnHeaderCell = New ColumnHeaderCell() Dim imageCell1 As ImageCell = New ImageCell() imageCell1.Style.NullValue = New Bitmap("PlaceHolder.png") Template1.Width = imageCell1.Size.Width Template1.Row.Cells.Add(imageCell1) Template1.Row.Height = imageCell1.Size.Height ColumnHeaderSection1.Cells.Add(ColumnHeaderCell1) ColumnHeaderSection1.Height = columnHeaderCell1.Size.Height Template1.ColumnHeaders.Add(ColumnHeaderSection1) GcMultiRow1.Template = Template1 GcMultiRow1.RowCount = 10
using GrapeCity.Win.MultiRow; Template template = new Template(); ColumnHeaderSection columnHeaderSection1 = new ColumnHeaderSection(); ColumnHeaderCell columnHeaderCell1 = new ColumnHeaderCell(); ImageCell imageCell1 = new ImageCell(); imageCell1.Style.NullValue = new Bitmap(@"PlaceHolder.png"); template.Width = imageCell1.Size.Width; template.Row.Cells.Add(imageCell1); template.Row.Height = imageCell1.Size.Height; columnHeaderSection1.Cells.Add(columnHeaderCell1); columnHeaderSection1.Height = columnHeaderCell1.Size.Height; template.ColumnHeaders.Add(columnHeaderSection1); gcMultiRow1.Template = template; gcMultiRow1.RowCount = 10;