10Tec Company logo 10Tec Company: Exclusive high-quality ActiveX and .NET tools and components
Site map
Free newsletter
Your e-mail:


Follow 10Tec on Twitter

iGrid instead of ListView Control

General comparison with ListView

If you were working with the ListView control in report mode to emulate data grid structures, you already know that ListView does not allow you to do many things. The most annoying of them are:

  • You cannot edit ListView items.

  • You cannot sort or group ListView items.

  • Every ListView item uses the same color and font.

  • ListView is slow when you work with big amounts of data.

  • ListView flickers when you scroll it or update from code intensively.

iGrid is free from all these drawbacks. Moreover, if you replace your ListView components with iGrid, your application will have the modern look consistent with all latest versions of Windows:

iGrid as an editable flicker-free replacement for ListView control. Edit ListView items and subitems with textbox, combobox, checkbox.

Pay attention to the fact that iGrid allows you to edit cells using such built-in editors as textbox editor, drop-down list (combo box) or check box. In ListView you can use none of them to edit ListView items and subitems unless you use tons of additional code to implement each editor.

A few words about coding

In iGrid you deal with cell matrix but not with the items/subitems ideology like in ListView. Thus, the iGrid syntax is easier and more native when you work with tabular data because you access every cell using the Cell(<row>, <column>) syntax like in a two-dimensional array. Your ListView calls like this

ListView1.ListItems(1).SubItems(2) = "some text"

are transformed into something more understandable like

iGrid1.CellValue(1, 3) = "some text"

or, if you use string keys to access your rows and columns, to this:

iGrid1.CellValue("row_key", "description") = "some text"

Many everyday tasks are implemenetd in code easily. For instance, to highlight rows with sales greater or equal to 50,000 like on the screenshot above, the following code is used:

Private Sub iGrid1_RowDynamicFormatting(ByVal lRow As Long, _
   oForeColor As Long, oBackColor As Long, oFont As stdole.Font)
   
   If iGrid1.CellValue(lRow, "Total Sales") >= 50000 Then
      oBackColor = RGB(224, 240, 240)
   End If
   
End Sub

More cool features

iGrid's cells can store values of any type as they are Variant.
If a cell is truncated, a built-in tooltip displays the full cell text.
Frozen (non-scrollable) columns.
iGrid supports Unicode.
...

Discover more iGrid's advantages in the Control Tour »

Section contents
 
Download Demo
 
Quick links
    Back to Top

© 10Tec Company. Last updated: 2010-Sep-09