• Turn off the WinGrid ActiveRowAppearance

    When you place a new UltraWinGrid on a form, it loads a default Preset. This preset applies an ActiveRowAppearance and an ActiveCellAppearance to the grid which make the ActiveRow appear with the same colors as a selected row.

    Note that this behavior…

  • Creating a dropdown list in a grid cell whose list values are dependent on another cell

    Introduction

    The UltraGridColumn has a ValueList property which allows you to attach a dropdown list to the column. The dropdown list may be any class that implements the IValueList interface, which includes the ValueList, BindableValueList, or UltraDropDown…

  • Determine WinGrid Mouse Position and Cell Identification

    Many projects using the WinGrid for navigation need to be able to determine which cell the user clicked on without the cell being selected or becoming active.  Using the grid's MouseUp or MouseDown events, you can retrieve a reference to the UIElement…

  • Sorting GroupByRows in the WinGrid by the Number of Child Rows

    Introduction

    Using OutlookGroupBy, UltraWinGrid allows you to group rows with similar values together just like Microsoft Outlook.

    The way grouping works is that the grid will sort the column and then loop through the rows to find matching values.…

  • Make an WinGrid Cell Containing an WinTextEditor Read-Only

    If the WinTextEditor is set to the EditorControl of a single cell, in order to make it read- only the cell’s Activation property needs to be set to “ActivateOnly.”

    The following code and samples assume the WinTextEditor is the EditorControl…

  • 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…

  • 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…

  • 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…

  • 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…

  • 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…

  • 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:

    1. The user can drop down a list and pick one of several options…