Both viewers support printing, paging, zooming Updates in v3 The key new feature this release is reporting. New Polygon chart types: Polygon and PolygonFilled. Users may set the filter by selecting values that should be displayed or by specifying conditions Release Notes: ChildItemsPath property allows for easy tree view creation.
If your data class has a property that contains a list of elements of any type, C1FlexGrid will show this hierarchical structure as a tree. FlexGrid for Silverlight Enhancements Added ShowOutlineBar property which causes the grid to show a row of numbered buttons on the first column header, similar to Microsoft Excel.
Enhancements C1 DataGrid allows multi-cell selection by dragging the mouse over the cells. C1 PdfViewer has been enhanced with thumbnail and document outline bookmark support. C1 Toolbar now supports Office Customer Testimonial: The C1 DataGrid and other Silverlight components are fast, and will do what you need, when you need it. NET code. Create or load an existing Excel Workbook and access individual sheets as if they were With Excel for Silverlight you don't even need Microsoft Excel installed.
Scheduler for Silverlight Enhancements- C1 Scheduler now Release Notes: Updates in v1 New Organization Chart Rich Data Binding- With this flexible, easy-to-use control, bind it to a single entity containing sub-items or an IEnumerable collection of items which each can contain sub-items. Versatile Item Display- Display items flowing horizontally or vertically in Release Notes: by your graphics card. Office Themes- Give your apps a more modern UI. FlexGrid Grouping Panel- Now supports the creation of groups by dragging column headers into the grouping area.
We are not responsible for any errors or omissions. ComponentOne is not liable for any special, consequential, or other damages for any reason. Copying and Distribution While you are welcome to make backup copies of the software for your own use and protection, you are not permitted to make copies for the use of anyone else.
We put a lot of time and effort into creating this product, and we appreciate your support in seeing that it is used by licensed users only. The robust data-bound C1DataGrid control makes it easy to display, edit, and analyze tabular data in Silverlight applications. For example, end-users can select, edit, delete, sort, filter, and group data. See Run-time Interaction page 31 for more information.
Simply drag a column header to the area above the grid to group the data. Expandable and collapsible nodes are automatically generated. See Grouping Columns page 38 for more information.
Column types include DateTime, Boolean, Numeric columns and more. For more information, see Column Types page You can even bind grid columns to image lists, an easy and efficient way to display database information graphically. You can even provide custom filtering. Filter bar options change by column type — so, for example, you can filter numeric columns by a number range.
See Filtering Columns page 36 for more information. See Adding Rows to the Grid page 41 for more information. Users can also resize columns and rows at run time. For more information, see Resizing Columns and Rows page 34 for more information. For more information, see Adding Row Details page You can also customize how parent and child grids appear and behave by using templates.
Localization is based on the same approach as the standard localization of. NET Windows forms. For more information, see Localizing the Application page By freezing a column, you can lock a column from being edited or manipulated by the end user.
For more information, see Keyboard and Mouse Navigation page Customize the default keyboard and mouse navigation to control how the user interacts with the grid at run time. See Custom Keyboard Navigation page 34 for more information. In this quick start you'll create a new project in Visual Studio, add DataGrid for Silverlight to your application, and bind it to a data source.
You'll then customize the grid's appearance and behavior and run the grid application to observe run-time interactions. You'll create a new Silverlight project and add the C1DataGrid control to your application. To set up your project and add a C1DataGrid control to your application, complete the following steps: 1. In the New Project dialog box, select a language in the left pane in this example, C is used , and in the templates list select Silverlight Application.
Enter a Name for your project and click OK. The Add Silverlight Application dialog box will appear. NET Web project to the solution to host Silverlight radio button is selected. Leave the default ASP. NET Web Application Project option and the default project name selected which should be the name of your project with a. Web extension. In the XAML window of the project, place the cursor between the and tags and click once. Note that you cannot currently add Silverlight controls directly to the design area in Visual Studio, so you must add them to the XAML window as directed in the next step.
DataGrid namespace and tags have been added to the project. What You've Accomplished You've successfully created a basic grid application.
In the next step you'll add a XML data source to your project and bind the grid to a data source. Step 2 of 4: Binding the Grid to a Data Source In the last step you set up the grid application, but the grid currently contains no data — if you run the application now you'll see a blank grid. In this step you'll continue in Visual Studio by adding an XML data source to your project and binding the grid to the data source. To add a data source and bind the grid in Visual Studio, complete the following steps: 1.
The Products. Replace the existing text in the Products. Right-click the project and select Add Reference. In the Add Reference dialog box, locate System. Linq and click OK to add the reference. Right-click the page and select View Code in the context menu to open the Code Editor. In the Code Editor, import the following namespaces: using System. Linq; using C1. DataGrid; 7. Add the following code to initialize the data source, and bind the C1DataGrid.
Load "Products. Attribute "Name". Attribute "Category". Attribute "Unit". Attribute "Price". In the next step you'll customize the appearance and behavior of the C1DataGrid control. In this step you'll customize the grid application's appearance and behavior. To customize DataGrid for Silverlight, complete the following steps: 1. Return to the Page. In this example you'll be customizing the grid in XAML rather than code.
This will enable the grouping area of the grid. The XAML will now look similar to the following:. This will move the add new row to the top of the grid. The XAML will now look similar to the following: 4. This will ensure that the horizontal and vertical scroll bars are always visible. The XAML will now look similar to the following: 5.
This changes the color of the horizontal and vertical grid lines. The XAML will now look similar to the following: What You've Accomplished Save and run your application and observe that you've changed the appearance of the grid and the columns that are displayed:.
In the next step you'll explore some of the run-time interactions that are possible in your grid application. Step 4 of 4: Running the Grid Application Now that you've created a grid application, bound the grid to a data source, and customized the grid's appearance and behavior, the only thing left to do is run your application.
To observe ComponentOne DataGrid for Silverlight's run-time interactions, complete the following steps: 1. Run your application. Click the Name header once to sort the grid by product name. Notice that a sort indicator glyph appears to indicate the column being sorted and the direction of the sort. Re-order the columns by clicking the Category column header and dragging it in front of the Name column header: The Category column will now appear before the Name column: 4.
Resize a column, here the Name column, by clicking the right edge of the column and dragging the edge to a new location. Filter the content of a column by clicking the drop-down arrow in the Category header, entering "bev" in the filter text box, and pressing the Filter button, so that only items beginning with that string appear: Notice that the drop-down arrow icon is replaced with a filter icon, indicating that the column is filtered:.
Clear the filter by clicking the Filter icon in the Category column header and clicking the Clear button: 7. Drag the Category header to the grouping area to group the grid by category:.
Click the X button in the Category column header in the grouping area to no longer group columns by category. Add new data to the grid by clicking in the new row and typing content: Click away from the row or press ENTER for the content you added to be included in the grid. To edit the contents of a cell, click once on a cell, type text to add or change content, and press the ENTER key:.
You've completed the DataGrid for Silverlight quick start and created a DataGrid for Silverlight grid application, bound the grid to a data source, customized the appearance of the grid, and viewed some of the run-time capabilities of your grid application. The columns of a table created using the C1DataGrid component correspond to the fields in a data source.
You can control which columns are displayed, the types of columns to display, and the appearance of the whole table. Using the AutoGenerateColumns property, you can generate columns automatically, manually, or both. Setting this property to True default creates columns automatically when the ItemsSource property is set. Setting this property to False allows you to specify the columns to display, which are added to the Columns collection.
Note: By default explicitly declared columns are rendered first, followed by automatically generated columns. You can change the order of rendered columns by setting the DisplayIndex property of the column.
Automatically generated columns are now added to the Columns collection. C1DataGrid : System. Control Encapsulates most of the grid functionality. This component is shown in Visual Studio's Toolbox. DataGridColumn : System. Object Represents a column in the grid. DataGridColumnCollection : System. Object Represents the collection of columns of the data grid. DataGridColumnHeader : System. Control Content control that represent the header of a column; this control contains the sort, resize and filter elements.
Connect and share knowledge within a single location that is structured and easy to search. I am not sure if anyone around here is familiar with ComponentOne's c1pdfdocument, let's hope so.
I have my data all ready to go in a DataTable but I have not a single clue how to add it to my c1pdfdocument and I can't find it on the net.
Although, only Silverlight and WPF. My solution uses the GetPageImages method from the grid control to generate each page, so it would not work in any other platform. Check out the Generating PDF topic in this blog post. This one goes row by row, cell by cell generating the output so if you were using a standard datagrid you could use this as a better example. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams?
Collectives on Stack Overflow. Learn more.
0コメント