'宣言 Public ReadOnly Property RowSelectorImages As RowSelectorImageInfo
public RowSelectorImageInfo RowSelectorImages {get;}
Private Sub BtnSetImages_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnSetImages.Click Me.UltraGrid1.DisplayLayout.RowSelectorImages.ActiveAndAddNewRowImage = Image.FromFile("activeAddNewImage.jpg") Me.UltraGrid1.DisplayLayout.RowSelectorImages.ActiveAndDataChangedImage = Image.FromFile("activeModifiedImage.jpg") Me.UltraGrid1.DisplayLayout.RowSelectorImages.ActiveRowImage = Image.FromFile("activeImage.jpg") Me.UltraGrid1.DisplayLayout.RowSelectorImages.AddNewRowImage = Image.FromFile("newImage.jpg") Me.UltraGrid1.DisplayLayout.RowSelectorImages.DataChangedImage = Image.FromFile("modifiedImage.jpg") End Sub
private void btnSetImages_Click(object sender, EventArgs e) { this.ultraGrid1.DisplayLayout.RowSelectorImages.ActiveAndAddNewRowImage = Image.FromFile("activeAddNewImage.jpg"); this.ultraGrid1.DisplayLayout.RowSelectorImages.ActiveAndDataChangedImage = Image.FromFile("activeModifiedImage.jpg"); this.ultraGrid1.DisplayLayout.RowSelectorImages.ActiveRowImage = Image.FromFile("activeImage.jpg"); this.ultraGrid1.DisplayLayout.RowSelectorImages.AddNewRowImage = Image.FromFile("newImage.jpg"); this.ultraGrid1.DisplayLayout.RowSelectorImages.DataChangedImage = Image.FromFile("modifiedImage.jpg"); }