UltraListView Control.
The Infragistics UltraListView control offers all the features as the Windows ListView
control and more. With Column sorting, no additional code is needed. You can move
the column header order, resize the columns. The appearance can be modified to look
like Office2007, Office2003 and XP. The control is loaded with item events to allow
total control over how the items within the control is been processed.

Namespace: Infragistics.Win.UltraWinListView
Assembly: Infragistics2.Win.UltraWinListView.v6.3.dll
using Infragistics.Win.UltraWinListView;
Calling: Infragistics.Win.UltraWinListView.UltraListView
Creating a new Infragistics.Win.UltraWinListView.UltraListView control.
Infragistics.Win.UltraWinListView.UltraListView ultrabutton1 = new Infragistics.Win.UltraWinListView.UltraListView();
Adding UltraListViewItems to the UltraListView object.
Infragistics.Win.UltraWinListView.UltraListViewItem item1 = new Infragistics.Win.UltraWinListView.UltraListViewItem("key-value");
item1.Value = "Text-to-display";
try
{
//Remember to check if the image exists.
item1.Appearance.Image = Image.FromFile(@"c:\Icons\helloworld.gif");
}
catch {}
ultraListView1.Items.Add(item1);
Assigning an ItemActivated event to the UltraListView control.
ultraListView1.ItemActivated +=new Infragistics.Win.UltraWinListView.ItemActivatedEventHandler(ultraListView1_ItemActivated);
Responding to the UltraListView ItemActivated event.
private void ultraListView1_ItemActivated(object sender, Infragistics.Win.UltraWinListView.ItemActivatedEventArgs
e)
{
MessageBox.Show (e.Item.Text);
}
With the UltraListView control, column sorting is enabled by default. You do not
need to write any additional code for this feature as this feature is embedded within
the control.
As with all Infragstics controls, you have total flexibility and power over the
appearence of the control.
|
|