バージョン

ReadOnly プロパティ (UltraDataBand)

このバンドに関連付けられた行コレクションのデータを変更(行の追加や削除を含む)できるかどうかを示します。
シンタックス
'宣言
 
Public Property ReadOnly As Infragistics.Win.DefaultableBoolean
public Infragistics.Win.DefaultableBoolean ReadOnly {get; set;}
解説

ReadOnly をTrueに設定すると、AllowAdd プロパティおよび AllowDelete プロパティの設定にかかわらず、セル値の変更も行の追加と削除も行えません。このプロパティを True に設定すると、UltraDataSource の IBindingList.ReadOnly 実装は True を返します。

使用例
Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinDataSource


    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        ' Setting ReadOnly to true on the UltraDataSource will prevent adding/deleting
        ' of rows as well as cell content modifications across all bands and columns.
        Me.ultraDataSource1.ReadOnly = True

        ' You can override that setting on an indivudal band.
        Me.ultraDataSource1.Band.ReadOnly = DefaultableBoolean.False

        ' You can also override that setting on an individual column.
        Me.ultraDataSource1.Band.Columns(0).ReadOnly = DefaultableBoolean.True
    End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinDataSource;
using System.Diagnostics;


		private void button1_Click(object sender, System.EventArgs e)
		{
			// Setting ReadOnly to true on the UltraDataSource will prevent adding/deleting
			// of rows as well as cell content modifications across all bands and columns.
			this.ultraDataSource1.ReadOnly = true;

			// You can override that setting on an indivudal band.
			this.ultraDataSource1.Band.ReadOnly = DefaultableBoolean.False;

			// You can also override that setting on an individual column.
			this.ultraDataSource1.Band.Columns[0].ReadOnly = DefaultableBoolean.True;
		}
参照