Hello,
The aexview is showing four or five columns and most of the time only one or
two is (are) useful in our environment Also the view is too big for our usual
screens so I would like :
- to hide some column from this view if possible
- to create a listview of the same field but limited to the field needed
What is the best way to approach this? Is this possible without changing too
many screens?
I have tried :
<tr>
<td align="left" class="listview-item"><%#
DataBinder.Eval(Container.vReport, "Name") >
</td>
</tr>
but for now I am getting an error:
The following error occurred on the page 'Copy of ItemListView.aspx':
Object reference not set to an instance of an object.
Exception Trace:
System.NullReferenceException: Object reference not set to an instance of an
object. at Altiris.NS.UI.ItemListView.Page_Load(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e) at
System.Web.UI.Control.LoadRecursive() at
System.Web.UI.Page.ProcessRequestMain()What did I miss? A Namespace?
Where should the class="listview-item should be defined? I think I have an
error already on this?
I have added:
<%@ Assembly Name="System.Windows.Forms.Control" %>
to try to use the ListView control as:
<td>
<asp:ListView id="listView" runat="server"></asp:ListView>
</td>
but it is giving me an error before adding the Namespace:
Parser Error: Could not load type
Altiris.NS.UI.Controls.ViewControls.ListViewCtrl from assembly Altiris.NS.UI,
Version=6.0.6074.4, Culture=neutral, PublicKeyToken=d516cb311cfb6e4f.
or
after adding the Namespace:
Parser Error: File or assembly name System.Windows.Forms.Control, or one of
its dependencies, was not found.
<%@ Import Name="System.Windows" %>
<%@ Import Name="System.Windows.Forms" %>
<%@ Import Name="System.Windows.Forms.Control" %>
.....
When trying to add the Namespace as import I am getting the following error:
Parser Error: The 'Name' attribute is not supported by the 'Import'
directive.
What could be the correct syntax?
thanks,
--
Dominique