Set the row height of a particular UltraWinGrid row to be different from the other rows

Answered (Not Verified) This post has 0 verified answers | 6 Replies | 2 Followers Thread's RSS feed.

finna
Points 100
Replied On: Fri, Mar 13 2009 12:00 PM Reply

Using the .Height property has no effect so I suspect there is some other property to allow it?

  • Post Points: 20

All Replies

Mike Saltzman
Points 442,815
Infragistics Employee
Answered (Not Verified) Replied On: Mon, Mar 16 2009 9:13 AM Reply
Suggested by Mike Saltzman

The Height property is the right one. But by default, all of the row heights are synchonrized. To allow variable-height rows, you need to set the RowSizing property on the Override to Free.

Mike Saltzman

Manager - Windows Forms Development

Infragistics, Inc.

  • Post Points: 20
sushantkajrolkar
Points 420
Replied On: Mon, May 25 2009 5:43 AM Reply

After defining the Override to free i have defined the DefaultRowHeight = 10

but no change Why ? any other way to increase the height of all the row when it loads 

  • Post Points: 20
Hady
Points 5,520
Answered (Not Verified) Replied On: Mon, May 25 2009 6:10 AM Reply
Suggested by Hady

10 is smaller than the default MinRowHeight

in order to be set you have to do the following:

ultraGrid1.DisplayLayout.Override.MinRowHeight = 1;

Hady

  • Post Points: 20
sushantkajrolkar
Points 420
Replied On: Mon, May 25 2009 9:53 AM Reply

no effect no changes

in the image u will see that i want to make the row size bigger.Can u help in this


  • Post Points: 20
Answered (Not Verified) Replied On: Mon, May 25 2009 10:22 AM Reply

Hi,          

The Height property is the right one.

Like Michael Saltzman said  you should override RowSizing property to Free.

ultraGrid1.DisplayLayout.Override.RowSizing = Infragistics.Win.UltraWinGrid.RowSizing.Free;

 

And set the Height of a chosen row as :

 ultraGrid1.DisplayLayout.Rows[0].Height = 40;

(affected only the size of the first row in your ultraGrid).

 

Regards

Danko.

Sincerely,
Danko Valkov
Principal DevOps Engineer, MCPD
Infragistics Inc.
www.infragistics.com/support

  • Post Points: 20
sushantkajrolkar
Points 420
Replied On: Mon, May 25 2009 10:38 AM Reply

Yes setting the row height =40 is working making height =10 was not noticable thanks to both of you

especially mike

  • Post Points: 5
Page 1 of 1 (7 items) | RSS