Forum Replies Created

Viewing 15 posts - 31 through 45 (of 5,588 total)
  • Author
    Posts
  • Xceed Support
    Member
    Post count: 5658

    Hi Arthur,

    You can add a Style to your window which targets DataCell. In your style, you can add the Setter for the ReadOnly property. You can also add Binding to style which would help things. You can add a converter in case you have certain criteria that your ReadOnly should follow. Here is a simple piece of XAML to get you started:

    XAML

    ———–

    <Style TargetType=”xcdg:DataCell”>
                <Setter Property=”ReadOnly”>
                    <Setter.Value>
                        <Binding Path=”Column5″ />
                    </Setter.Value>
                </Setter>   
            </Style>

    ———–

    Moreover, you can refer to a Blog post that Michel wrote last year which shows how to style cells based on other values. You can click on this link for a further explanation. Sample applications do come with the blog post just in case you want to see it in action.

    Imported from legacy forums. Posted by Marc [Xceed] (had 685 views)

    Xceed Support
    Member
    Post count: 5658

    Hi Grant,

    This is possible with the DataGrid. An example of this is shown in the documentation which can be found here. In the first example on this topic, the StatRow was added to the GroupConfiguration’s footer, which is not what you want. What you could do, is take your DataTemplate which contains the StatRow + StatCells and add it to the FixedFooters of your view. For example:

    XAML

    ——————-

    <xcdg:DataGridControl.View>
       <xcdg:TableflowView>
          <xcdg:TableflowView.FixedFooters>
             <DataTemplate>
                <xcdg:StatRow>
                   <xcdg:StatCell FieldName=”UnitPrice”
                                  ResultPropertyName=”unitprice_sum”/>
                   <xcdg:StatCell FieldName=”Quantity”
                                  ResultPropertyName=”quantity_sum”/>
                   <xcdg:StatCell FieldName=”OrderID”
                                  ResultPropertyName=”orderid_count”/>
                </xcdg:StatRow>
             </DataTemplate>
          </xcdg:TableflowView.FixedFooters>
       </xcdg:TableflowView>
    </xcdg:DataGridControl.View>

    ——————-

    Imported from legacy forums. Posted by Marc [Xceed] (had 630 views)

    Xceed Support
    Member
    Post count: 5658

    Hi,

    Have you tried setting the ActivationGestures? If you need moire explanation with examples, you can go to our online documentation here for more details. As stated in the docs, “Activation gestures are key and/or text input, which cause an element to enter edit mode and are defined through a cell editor’s ActivationGestures property (see Examples 1 and 2)”. The F2 key should be reserved for editing. You can take a look at the EditModes sample application that was installed on your machine when you installed the component.

    C:\Xceed Samples\Xceed DataGrid for WPF Professional Edition v4.3\CSharp\EditModes

    Imported from legacy forums. Posted by Marc [Xceed] (had 565 views)

    Xceed Support
    Member
    Post count: 5658

    Hi,

    There are 2 ways to apply themes in WPF using the Professional Themes package. 

    1) Implicitly

    2) Explicitly

    If you want to apply them implicitly so that every Listview has the same theme, then you can do it as instructed here. If you are looking to apply them explicitly, you can do it as it is shown in the documentation here. If you need to see the available controls that are supported for every theme, you can also view them in the online documentation.

    Imported from legacy forums. Posted by Marc [Xceed] (had 218 views)

    Xceed Support
    Member
    Post count: 5658

    Hi Caravanio,

    The SelectionBackground was put in as a feature to avoid coding a trigger for a background to a selected cells. The only thing you can do is upgrade to the latest version of the component.

    Imported from legacy forums. Posted by Marc [Xceed] (had 601 views)

    Xceed Support
    Member
    Post count: 5658

    Hi Olivia,

    The only way to do this is to program it yourself. Currently, when the data source is refreshed, the DataGrid will expand or collapse the groups depending on the InitiallyExpanded property. You will need to save the settings and reload them once the data source is refreshed. I had written this piece of code that will pay attention to all groups that have been expanded or collapse and reapplies them once the collection view has been refreshed. It is more of a hack, but it is the only way to get this feature working right now:

    C#
    —————
    DataGridCollectionView view = this.MyDGC.ItemsSource as DataGridCollectionView;
                if (view == null) { return; }

                //if there aren’t any groups, just refresh
                if (view.Groups.Count < 1)
                {
                    view.Refresh();
                    return;
                }
                bool[] expandedGroups = new bool[view.Groups.Count];

                for (int i = 0; i < view.Groups.Count; i++)
                {
                    expandedGroups[i] = this.MyDGC.IsGroupExpanded(view.Groups[i] as CollectionViewGroup);
                }

                view.Refresh();
               
                for (int i = 0; i < view.Groups.Count; i++)
                {
                    if (!expandedGroups[i])
                        this.MyDGC.CollapseGroup(view.Groups[i] as CollectionViewGroup);
                }
    —————

    Imported from legacy forums. Posted by Marc [Xceed] (had 306 views)

    Xceed Support
    Member
    Post count: 5658

    Hi Maha,

    Yes, the Xceed Zip for .NET is supported in Windows 7 environment. I see that you are using a very old version of the component. I am not entirely sure what the behavior might be for that specific version, but the latest version of the component works in Windows 7. If you want, you can download and install the latest version using a trial key which is provided to you when you install. You can then make the decision whether to purchase the component or not depending if it suits your needs. You can download the component here.

    Imported from legacy forums. Posted by Marc [Xceed] (had 1140 views)

    Xceed Support
    Member
    Post count: 5658

    Hi Jason,

    The only way to achieve this type of scenario is to redo the ColumnManagerCell template. In the template, you could add a setter for the background
    color in the correct section (the MultiDataTrigger that is used to
    display the AutoFilter glyph when a filter is present on that column). Unfortunately, this is the only way. You can create a hack to change the background using a custom property, but that would require some logic. For best performance and cleanliness, I would suggest redoing the template of the ColumnManagerCell.

    The location of the templates can be found on your machine:

    C:\Program Files (x86)\Xceed\Xceed DataGrid for WPF Professional Edition v4.3\Themes

    In the xaml files, you can find the templates of the controls for those specific themes. If you are using a theme like Media Player 11, then you would need to purchase the Blueprint edition. Or else, you can simply look at the XAML files in the location I provided.

    Imported from legacy forums. Posted by Marc [Xceed] (had 305 views)

    Xceed Support
    Member
    Post count: 5658

    Hi Reinhard,

    I have forwarded this case to the lead developer of the component to get more information for you. In your project, are you targeting the .NET framework 4 or 4.5? Also, are you able to upload a copy of your project so that we can see your setup with your settings? This will be useful for use so that we can continue investigating. 

    Imported from legacy forums. Posted by Marc [Xceed] (had 508 views)

    Xceed Support
    Member
    Post count: 5658

    Hi Paul,

    What is it exactly you are looking for? Which theme are you using for your current DataGridControl? Is it that you want the background of your columns to be the same as the RowSelector? Can you provide me with more information on what you want to achieve. This would give me a better idea on how to answer your question.

    Imported from legacy forums. Posted by Marc [Xceed] (had 490 views)

    Xceed Support
    Member
    Post count: 5658

    Hi MC,

    If you check my first response, you will see that when using TableflowView, the no bottom level groups will only show as hidden, even when collapsed. This is because of the smooth scrolling. The only way that you will see this work the way you want it to, is if you use TableView. When using TableflowView, the grid will need to calculate the exact amount of pixels and needs to know the exact height of every row (and they will need to be the same) in order for this to work. This means that rows cannot be collapsed. 

    Imported from legacy forums. Posted by Marc [Xceed] (had 940 views)

    Xceed Support
    Member
    Post count: 5658

    Hi Parth,

    I am not exactly sure what you are doing in your application, but the issue you are having is not expected. What is the exact version of the DataGrid are you using? Are you able to replicate this issue in a smaller application? If you can, can you upload it so that I can take a look at what is going on so that I can provide you with a possible solution?

    Imported from legacy forums. Posted by Marc [Xceed] (had 664 views)

    Xceed Support
    Member
    Post count: 5658

    Hi uri,

    It’s weird that you can’t just copy/paste the link from msdn. The topic at msdn is ” Grid Data into a PDF file in a WPF Application”. You should look at the first response to get you started.

    Imported from legacy forums. Posted by Marc [Xceed] (had 735 views)

    Xceed Support
    Member
    Post count: 5658

    Hi,

    It seems as though when the collection view is getting refreshed, the grid is crashing. If you are not able to reproduce the issue, I would suggest using an older version that does work, such as the latest version of 4.2. This would obviously be until we can pin point what the exact cause of the issue is. Please let us know when you do find out so we can continue to investigate. Unfortunately, without a small self-contained sample application, we cannot determine what the cause of the error is and what the possible solution can be.

    Imported from legacy forums. Posted by Marc [Xceed] (had 1140 views)

    Xceed Support
    Member
    Post count: 5658

    Hi Jake,

    Instead of returning Hidden when it is not the bottom level, have it return Collapsed as the visibility. This will do the trick. Also, you might want to play around with the indenting of the Groups when the grouping levels start to accumulate. To do this, you will need to tinker with the template.

    Imported from legacy forums. Posted by Marc [Xceed] (had 701 views)

Viewing 15 posts - 31 through 45 (of 5,588 total)