Windows Forms Articles

By [Infragistics] Andrew Flick Last Updated Sep 09, 2009

Views: (1,311) Comments (0)

Performance in the WinTilePanel

Performance in the WinTilePanel Due to the nature of the Windows Forms Platform, the WinTilePanel can become slow, choppy, and possibly even unusable if it is used in certain ways. Transparency Transparency and alpha-blending can introduce a performance hit to the painting logic of any Control in Windows Forms. This is because transparent Controls are actually opaque, but they first ask their parent...

By [Infragistics] Tony Lombardo Last Updated May 09, 2009

Views: (2,536) Comments (3)

By Jason Beres Last Updated Feb 09, 2009

Views: (3,951) Comments (9)

UI Thread Marshaling in the Model Layer

This article is original content by contributor Mike Heffernan It is well known that most Windows Forms are not thread safe, and all changes to these controls should run (be marshaled on to) the thread processing windows events (the UI thread). Worker threads are often used to do lengthy calculations or process asynchronously messaged events, allowing the UI to react to the user while these tasks are...

By Jason Beres Last Updated Feb 09, 2009

Views: (2,753) Comments (3)

Disable WinGrid Row, Cell or Column with Activation Object

It is sometimes necessary to make a column which is editable in the underlying data read-only or disabled in the grid. This can be done by changing the Activation on several levels of objects. To disable editing in the entire grid or on a Band-level, use the AllowUpdate property on the override. There is an Override property on the grid's DisplayLayout and on the band, so you can disable editing...

By Jason Beres Last Updated Feb 09, 2009

Views: (1,783) Comments (0)

Using an WinGrid DataFilter to Convert Strings to Bools (and vice-versa) for a Checkbox Column

Introduction The DataFilter in the WinGrid provides a powerful and flexible means for transforming data from one format to another when putting data into or extracting it from the grid. This article will demonstrate data filtering by showing an WinGrid with a column of checkboxes which have an underlying ADO.NET DataColumn (from which the values of the cells in that column originate) containing strings...

By Jason Beres Last Updated Feb 09, 2009

Views: (2,335) Comments (0)

Select All Rows in WinGrid Programatically

To select all the rows in the UltraWinGrid programmatically, the obvious solution is to loop through all the rows and set the Selected Property of each row to true. However, this is inefficient and if there are a lot of rows in the grid, it can take more time than necessary. A more efficient way to select all of the rows is to use the AddRange method. C# this.ultraGrid1.Selected.Rows.AddRange((UltraGridRow...

By Jason Beres Last Updated Feb 09, 2009

Views: (1,644) Comments (0)

Change Color of Column Headers in WinGrid

Introduction The UltraWinGrid column headers SupportThemes property is set to True by default. This setting allows the grid to let the operating system draw certain aspects of the control with an XP theme. If you try to set the column headers of the grid to a custom color, they will be ignored. There are two options for disabling the themed rendering, in turn, enabling the custom header colors to be...

By Jason Beres Last Updated Feb 09, 2009

Views: (2,908) Comments (0)

Best Practices for Placing a DropDown or Combo in an WinGrid Cell

Best Practices for Placing a DropDown or Combo in an WinGrid Cell Summary It is often desirable to place a dropdown list of choices in a cell of the grid. This has several advantages: The user can drop down a list and pick one of several options. The dropdown list can act as a lookup table to convert ID values into more user-friendly display text. The dropdpown list can limit the user to a specific...