Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
160
Error when trying to use GroupColumn in XamGrid
posted

Hi Guys:

Fairly straightforward question. I'm using assembly 10.3 and wanting to add some group columns. Using both Blend 4 and VS2010 with the following code, I recieve the error message that follows the code snippet. It has to do with the way the layour and measuring routines work , however don't know what is causing the issue. Please advise.

Thanks

Steve

CODE:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

<ig:XamGrid d:LayoutOverrides="Width" Margin="0,24,0,0" DeleteKeyAction="DeleteSelectedRows" HeaderStyle="{StaticResource form1HeaderCellControlStyle}" AutoGenerateColumns="False" Name="xamGridForm1" ColumnLayoutHeaderVisibility ="Always">

 

 

 

 

<ig:XamGrid.Columns>

 

 

 

 

<ig:GroupColumn AllowCaseSensitiveSort="True" FixedIndicatorDirection="{x:Null}" HeaderText="Dimensions" HeaderTextHorizontalAlignment="Center" HeaderTextVerticalAlignment="Center" IsFixable="True" IsHideable="True" IsMovable="True" IsResizable="True" Key="grpColDimensions" VerticalContentAlignment="Center" Width="200">

 

 

 

 

<ig:GroupColumn.Columns>

 

 

 

 

<ig:TextColumn AllowCaseSensitiveSort="True" EditorHorizontalContentAlignment="Stretch" EditorVerticalContentAlignment="Stretch" FixedIndicatorDirection="{x:Null}" HeaderText="Width (mm)" IsFilterable="True" IsFixable="True" IsGroupable="True" IsHideable="True" IsMovable="True" IsResizable="True" IsSortable="True" IsSummable="True" Key="colWidth" VerticalContentAlignment="Center" Width="100">

 

 

 

 

<ig:TextColumn.FilterColumnSettings>

 

 

 

 

<ig:FilterColumnSettings FilterCaseSensitive="False" FilterCellValue="{x:Null}" FilterMenuClearFiltersString="{x:Null}" FilterMenuTypeSpecificFiltersString="{x:Null}" FilteringOperand="{x:Null}" />

 

 

 

 

</ig:TextColumn.FilterColumnSettings>

 

 

 

 

<ig:TextColumn.SummaryColumnSettings>

 

 

 

 

<ig:SummaryColumnSettings />

 

 

 

 

</ig:TextColumn.SummaryColumnSettings>

 

 

 

 

</ig:TextColumn>

 

 

 

 

<ig:TextColumn AllowCaseSensitiveSort="True" EditorHorizontalContentAlignment="Stretch" EditorVerticalContentAlignment="Stretch" FixedIndicatorDirection="{x:Null}" HeaderText="Height (mm)" IsFilterable="True" IsFixable="True" IsGroupable="True" IsHideable="True" IsMovable="True" IsResizable="True" IsSortable="True" IsSummable="True" Key="colHeight" VerticalContentAlignment="Center" Width="100">

 

 

 

 

<ig:TextColumn.FilterColumnSettings>

 

 

 

 

<ig:FilterColumnSettings FilterCaseSensitive="False" FilterCellValue="{x:Null}" FilterMenuClearFiltersString="{x:Null}" FilterMenuTypeSpecificFiltersString="{x:Null}" FilteringOperand="{x:Null}" />

 

 

 

 

</ig:TextColumn.FilterColumnSettings>

 

 

 

 

<ig:TextColumn.SummaryColumnSettings>

 

 

 

 

<ig:SummaryColumnSettings

/>

 

 

 

 

</ig:TextColumn.SummaryColumnSettings>

 

 

 

 

</ig:TextColumn>

 

 

 

 

</ig:GroupColumn.Columns>

 

 

 

 

<ig:GroupColumn.FilterColumnSettings>

 

 

 

 

<ig:FilterColumnSettings FilterCaseSensitive="False" FilterCellValue="{x:Null}" FilterMenuClearFiltersString="{x:Null}" FilterMenuTypeSpecificFiltersString="{x:Null}" FilteringOperand="{x:Null}" />

 

 

 

 

</ig:GroupColumn.FilterColumnSettings>

 

 

 

 

<ig:GroupColumn.SummaryColumnSettings>

 

 

 

 

<ig:SummaryColumnSettings />

 

 

 

 

</ig:GroupColumn.SummaryColumnSettings>

 

 

 

 

</ig:GroupColumn>

 

 

 

 

</ig:XamGrid.Columns>

</

 

 

ig:XamGrid>

 

 

System.Reflection.TargetInvocationException

Exception has been thrown by the target of an invocation.

at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner) at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Delegate.DynamicInvokeImpl(Object[] args) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

 

System.InvalidOperationException

An unhandled exception was encountered while trying to render the current silverlight project on the design surface. To diagnose this failure, please try to run the project in a regular browser using the silverlight developer runtime.

at Microsoft.Windows.Design.Platform.SilverlightViewProducer.OnUnhandledException(Object sender, ViewUnhandledExceptionEventArgs e) at Microsoft.Windows.Design.Platform.SilverlightViewProducer.SilverlightContentHost.MeasureOverride(Size availableSize) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at MS.Internal.Designer.ZoomableViewPresenter.DesignerBackground.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.Decorator.MeasureOverride(Size constraint) at Microsoft.Windows.Design.Interaction.DesignerView.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at MS.Internal.Designer.Viewport.MeasureOverride(Size availableSize) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint) at System.Windows.Controls.ScrollContentPresenter.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV) at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV) at System.Windows.Controls.Grid.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.ScrollViewer.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.Grid.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint) at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.Control.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Interop.HwndSource.SetLayoutSize() at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value) at System.Windows.Interop.HwndSource.set_RootVisual(Visual value) at MS.Internal.DeferredHwndSource.ProcessQueue(Object sender, EventArgs e)

 

System.NullReferenceException

Object reference not set to an instance of an object.

at MS.Internal.XcpImports.MethodEx(IntPtr ptr, String name, CValue[] cvData) at MS.Internal.XcpImports.MethodEx(DependencyObject obj, String name) at MS.Internal.XcpImports.UIElement_UpdateLayout(UIElement element) at Microsoft.Windows.Design.Platform.SilverlightViewProducer.SilverlightContentHost.MeasureOverride(Size availableSize)

Parents Reply Children