Imports Infragistics.Shared Imports Infragistics.Win Imports Infragistics.Win.UltraWinGrid Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button1.Click ' If row's RowSpacingAfter is set to a non-default value then RowSpacingAfterResolved ' will return that value otherwise it will return the setting on the override. Me.ultraGrid1.DisplayLayout.Override.RowSpacingAfter = 10 Dim row As UltraGridRow = Me.ultraGrid1.Rows(0) ' This will print the setting on the override which is 10. Debug.WriteLine("RowSpacingAfterResolved: " & row.RowSpacingAfterResolved) row.RowSpacingAfter = 20 ' This will print the setting on the row which we set above to 20. Debug.WriteLine("RowSpacingAfterResolved: " & row.RowSpacingAfterResolved) End Sub
using Infragistics.Shared; using Infragistics.Win; using Infragistics.Win.UltraWinGrid; using System.Diagnostics; private void button1_Click(object sender, System.EventArgs e) { // If row's RowSpacingAfter is set to a non-default value then RowSpacingAfterResolved // will return that value otherwise it will return the setting on the override. this.ultraGrid1.DisplayLayout.Override.RowSpacingAfter = 10; UltraGridRow row = this.ultraGrid1.Rows[0]; // This will print the setting on the override which is 10. Debug.WriteLine( "RowSpacingAfterResolved: " + row.RowSpacingAfterResolved ); row.RowSpacingAfter = 20; // This will print the setting on the row which we set above to 20. Debug.WriteLine( "RowSpacingAfterResolved: " + row.RowSpacingAfterResolved ); }