Results 1 to 4 of 4

Thread: Grid for WPF

  1. #1
    Join Date
    May 2008
    Posts
    2

    Question Grid for WPF

    Hi, Iam working on WPF DataGrid (dev. by ComponentOne) with Visual Studio 2008. I wish to provide facility to
    user to select "Columns" of a Table using ListBox(if possible, by clicking on Checkboxes within the ListBox) and
    the Report will be generated for those selected "Columns" only. Selection to be made at run time !

  2. #2
    Join Date
    May 2008
    Posts
    2

    Unhappy

    I have run the program on WPFDatagrid, but it is giving 2 errors.
    i)Could not create an instance of type'StaticExtension'
    ii)Cannot find the type 'VisibilityToBoolConverter'
    I am sending the relevant XAML code as well as the VisibilityToBoolConverter.vb code
    <XAML>
    <CheckBox IsChecked="{Binding Visibility ,
    Converter={x:Static local:VisibilityToBoolConverter.Default},
    Mode=TwoWay}"/>
    <TextBlock Text="{Binding Caption}"/>
    </XAML>
    <VisibilityToBoolConverter.vb>
    Imports System
    Imports System.Collections.Generic
    Imports System.Linq
    Imports System.Text
    Imports System.Windows.Data
    Imports System.Windows
    Imports System.Globalization

    Namespace NEW_WpfApplication_20_5_08
    Public Class VisibilityToBoolConverter
    Implements IValueConverter

    Public Shared ReadOnly [Default] As New VisibilityToBoolConverter()

    Public Function Convert(ByVal value As Object, ByVal targetType As Type, ByVal parameter As Object, ByVal culture As CultureInfo) As Object Implements IValueConverter.Convert
    If TypeOf value Is Visibility Then
    Return CType(value, Visibility) = Visibility.Visible
    Else
    Return Binding.DoNothing
    End If
    End Function

    Public Function ConvertBack(ByVal value As Object, ByVal targetType As Type, ByVal parameter As Object, ByVal culture As CultureInfo) As Object Implements IValueConverter.ConvertBack
    If TypeOf value Is Boolean Then
    Return If(CBool(value), Visibility.Visible, Visibility.Collapsed)
    Else
    Return Binding.DoNothing
    End If
    End Function
    End Class
    End Namespace
    </VisibilityToBoolConverter.vb>
    Could somebody point out the error in my application ? Regards Arijit

  3. #3
    Join Date
    Mar 2012
    Posts
    2

    Default

    I am not yet a customer. I still hesitate which wpf suite to buy. The one from xx who has a pivot grid which I really need. Or I wait for you creating a pivot grid in wpf. Any chance this gets released somehow in the middle of 2010?

  4. #4
    Join Date
    Jul 2010
    Posts
    245

    Default

    Closing this thread as not SPRNET-related.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •