Browse By Tags

  • Nuget packages for .NET Framework

    I've got an older .NET Winforms application that targets Framework 4.7.2. I need to change it so the Infragistics libraries it references (UltraWinGrid, UltraWinDock, UltraWinToolbar, UltraWinTree) to get loaded via Nuget rather than referencing a location…

  • Wingrid on dataset: 1 master grid, 2 detail grids based on same datatable

    Hi all,

    imagine this scenario:

    - dataset based on MSSQL database

    - MSSQL tables are master 1:n detail; Foreign key is F_Master_ID

    - detail table has a "side" attribute (L/R for left/right) which assigns each detail to a side.

    - GUI is required…

  • Allow edit in AddRow but not on the existing rows

    I have an UltraGrid bound to a DataTable with AllowAddNew = AllowAddNew.TemplateOnBottom.  I have a column with an EditorComponent of UltraComboEditor and another column with EditorComponent of UltraTextEditor.

    It should NOT allow editing of existing rows…

  • change cell to negative number on leave

    Hi,

    I want to have an editable cell where, when I fill in a number and leave (loses focus) the cell, I want to set the value to negative. I tried in eventhandler CellChange but when I left the cell, the cell became empty. I also tried in BeforeExitEditMode…

  • Enforce negative numbers in cell

    Hi, I want to enforce the input of only negative numbers in a cell. People could put in a positive number but then I want to change it to a negative number when it changes (maybe on loses focus is fine too).
    I used an inputmask on Aantal:
    gridDetail.DisplayLayout…

  • Change text in UltraTextEditor in Cell

    I want to change the text of an UltraTextEditor in Cell at runtime:

    private void matchEditor_EditorButtonClick(object sender, Infragistics.Win.UltraWinEditors.EditorButtonEventArgs e)

            {

                UltraGridCell cell = (UltraGridCell)e.Context;

                i…

  • Formula for GridCell

    Hi,

    is it possible to put a formula to a wingridcell?

    Example: cell.formula = cell("a1") + cell("c4")

    Thanks

    Hansjörg Wintermantel

  • How to change the height of the webgrid dynamically

    when I try to do this

    in javascript


    document.getElementById(<%=grid1.ClientID%>).height =  299 + px;

     

    It does not change its height. Do I need to set the height of the frame too.

    I have something like

    <FrameStyle>

    </FrameStyle> in the…

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

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

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

  • Using the Infragistics WinGrid in a WPF Application

    In some scenarios, developers may find themselves in a situation where they are using the Infragistics WinGrid wrapped with some pretty intensive business logic that is going to take a good deal of time to recreate. One possibility that the developer…

  • 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…
  • Embed Any Control In WinGrid Col Header Using IUIElementCreationFilter

    Here is a sample that I put together a while back when someone asked me about embedding "Any Control I Want" into the Column Headers of the Infragistics WinGrid. 

    I started to explain how to think about the control that you want to place in the…

  • WinGrid LINQ To XML CRUD Sample

    Hi everyone,

    I wrote this sample last year so that I can learn a little about LINQ to XML. This sample basically loads data from an XML file into a list of objects that gets bound to WinGrid. I used several techniques to handle the create, read, update…