Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MM.Net Infragistics Controls question
Message
From
08/02/2005 08:11:27
Eugenio Casal
Futura Tecnologia Informação Consult Ltd
São Paulo, Brazil
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00984241
Message ID:
00984694
Views:
27
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform