InitializeRow Event The InitializeRow event is raised once per row that has been created in the WinGrid. For example, if your underlying data source has 45 rows, then the InitializeRow event will be raised 45 times. Each time it is raised, you will have an opportunity to access the current row that is being passed...
Ink-Enable WinGrid Input With the addition of the WinInkProvider™ to the Infragistics suite of Windows Forms products, it becomes very easy to ink-enable the Infragistics elements in your application. If you are deploying an application on the TabletPC platform, follow these simple steps to add ink capability to t...
Invalid Value Behavior Specifies the behavior when the user attempts to leave a cell after entering an invalid value. The InvalidValueBehavior property has the following members: Default - Default is resolved to RetainValueAndFocus. RetainValueAndFocus - Retains the value entered by the user and also keeps the cel...
Keeping the Active Row Visible Background When adding a new row the WinGrid™ displays the new row at the bottom of the hierarchical section being added to. For a grid with many rows, this means the grid will scroll and whatever row the user was reviewing may scroll out of view. To keep the Active Row visible while...
Limiting Band Indentation Occasionally, you may want to save screen space by limiting the amount of indentation used when displaying child bands. The Indentation property controls the amount of space used when indenting. Code controlling the overall appearance of the WinGrid™ is usually placed within the Initializ...
Limiting the Amount of Displayed Cards You can specify how many Cards show on WinGrid™ at any given time. You can configure the maximum amount of Cards to show horizontally and vertically by setting the MaxCardAreaCols and MaxCardAreaRows properties off the CardSettings object, respectively. Note Note Keep in mind...
Localizing Cell Display Format Background Many projects must deal with multiple cultures such as English, German and Japanese. The .NET Framework provides excellent support for multiple cultures, and this capability is passed through to the WinGrid™ user. Questions How do I format dates for different cultures? Sol...
Looping Through the Entire Grid The GetRowEnumerator method makes it easy to loop through the entire WinGrid™ in order to search for or change a specific row. The GetRowEnumerator method was added to the UltraGridBand class to loop through all the rows in a particular band. The method was also added to the RowsCol...
Memory Usage When the following tips and tricks are applied to your programmatic use of Wingrid™, you can improve performance by reducing the memory footprint that is imposed on the system. Using the GetCellValue Method Instead of Referencing Cell Values Directly The WinGrid does not create UltraGridCell objects f...
Merging Cells with the Same Values Note Note This topic demonstrates how to merge cells in the same column. Merging cells in the same row is not supported. To merge cells that have the same values in a column: Before you start writing any code, you should place using/imports directives in your code-behind so you d...