Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MM.Net Infragistics Controls question
Message
De
08/02/2005 08:11:27
Eugenio Casal
Futura Tecnologia Informação Consult Ltd
São Paulo, Brésil
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00984241
Message ID:
00984694
Vues:
24
Hi Kevin,

>>3- I followed the directions at "Data Binding the mmUltraGrid" in the help but when I click in the "Get Orders" button, the grid shows all the columns no matter what I have previously setup. What am I missing?
>
>I'm not sure what's going on...are you able to get it to work with a "regular" Infragistics DataGrid?

The behavior is the same with a "regular" Infragistics DataGrid.
I had to write this to fix the problem:
private void grdOrders_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
{
	foreach(UltraGridColumn oColumn in e.Layout.Bands[0].Columns)
	{
		oColumn.Hidden=true;
	}

	e.Layout.Bands[0].Columns["OrderID"].Hidden=false;
	e.Layout.Bands[0].Columns["ShipName"].Hidden=false;
	e.Layout.Bands[0].Columns["OrderDate"].Hidden=false;
	e.Layout.Bands[0].Columns["RequiredDate"].Hidden=false;
	e.Layout.Bands[0].Columns["ShippedDate"].Hidden=false;
	e.Layout.Bands[0].Columns["ShipCountry"].Hidden=false;
}
I will ask the Infragistics support if I there´s a better way to accomplish this.

Eugênio
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform