Browse By Tags

  • Binding XamDataGrid to Data derived from Entity Framework

    Good morning! I'm trying to bind a XamDataGrid to an ObservableCollection made up of an object derived from a DBContext generated with EntityFramework. Though I am binding the datagrid's Data Source to my Observable Collection, the grid never visually…

  • XamDataGrid in a user control

    Hi,

    I want to show different grids based on business criteria with different columns.

    The idea is to have a separate UserControl with a grid and in parent page change it(by hiding/showing ). 

    I tried embedding the grid in user control with no data context…

  • XamDataGrid TemplateField Binding Question

    Hi,

    I'm sure I'm missing something obvious here but I'm trying to migrate the following from the XamGrid to the XamDataGrid.

    Here's the XamGrid xaml.  You can see that within the template I am binding to two different properties on the…

  • Problems with Binding

    I am aware of how to bind using INotifyPropertyChanged and raising an event.  But I am not able to get the bindings to work as I like in the DataTable Cells that a XamDataGrid is bound to.

    For example i have a class CellProperties (see snippet below) and…

  • XamDataGrid ComboBoxField to update underlying Text and Value

    I have a XamDataGrid with a ComboBoxField.  The ComboBoxField is populated with a list of custom object having 2 important properties: label, ID.

    The list of custom objects that populates my XamDataGrid also has label and ID properties.  How can I get my…

  • XamGrid to XamDataGrid

    Hello,

    recently I am trying to replace some simple XamGrid tables to to XamDataGrid and this seem to get complicated very easily.

    for example:

    with XamGrid I have 2 TemplateColumns bound to different properties of my viewmodel (It is working properly…

  • Binding the property in DisplayTemplate with property other than the value to be displayed.

    <ig:XamDataGrid Grid.ColumnSpan="2" DataSource="{Binding StudentData}">
    <ig:XamDataGrid.FieldLayouts>
    <ig:FieldLayout>
    <ig:TemplateField Label="Marks" Name="StudentMarks" AllowEdit="True" AllowGroupBy="False" DisplayTemplate…

  • XamDataGrid ComboBoxField population

    Hi,

    I tried to follow Tacho's example.

     So far I managed to show a ComboBoxEditor in a field with correct data. But once a new items is selected the editor sets the item, but as soon as the editing is finished the item is set to null.

    What am I doing…

  • xamDataGrid: Binding field width

    Hello,

    how can I bind the field width? It seems binding is not working.

    <ig:Field Name="Message" Label="Message" Width="{Binding MyWidth}" CellValuePresenterStyle='{StaticResource styleMutltilineCell}'/>

  • Binding datagrid column IsEnabled in code

    We are dynamically creating the datagrid's fields collection in code. One of the fields is a checkbox. I need to bind the IsEnabled property so that I can disable individual cells based on data values via a converter. Although I see there is a converter…

  • Unexplainable Binding Errors against FieldLayout.AutoFitToWidth

    We're using XamDataGrid v11.2 and we get one BindingExpression path error for each XamDataGrid as it renders. The whole message is:

    BindingExpression path error: 'FieldLayout' property not found on 'object' ''GridUserControl' (Name='')'. BindingExpression…

  • Bind some columns to a dynamic collection.

    Hello,

    I have a XamDataGrid with a list of equipments, and I need to set a range of columns with DateTime in header (based on a period set by user filter) and a mark on equipment row below the date when the equipment broke down.  In my ViewModel I have…

  • Unable to bind to a Dictionary<MyEnum, MySubObj>

    Hi,

    I am unable to bind to a dictionary that is a child collection.  Here are my classes

    ParentClass

    {

        string Name,

        Dictionary<MyEnum, ChildClass> ChildClasses

    }

    The Grid Datasource is a List<ParentClass>.

    I am trying to bind using…

  • Setting the style for UnboundField based on it's value?

    Hi.

    Using XamDataGrid 2011.1

    I've googled all the sites and checked Feature Browser for solution, but didn't find.

    Given:

    XamDataGrid with some unbound fields. Some of the fields are set for "indexer's" properties. Thus, unboundField's BindingPath…

  • Trying to use MultivalueConverter in XamGrid

    I was trying to use MultiValueConverter with XamGrid. I keep getting unhandled exception at runtime. Find the code below.

     <ig:XamGrid
                RowSelectorClicked="xamGrid1_RowSelectorClicked"
                RowExpansionChanging="xamGrid1_RowExpansionChanging…

  • Another Hierachical Data and Field Layout / Binding question

    I have a Custom object that represents inventory items and looks similar to this:

     public class InvItem {

            public string ItemID {

                get;

                set;

            }

      public string UPC_SKU {

                get;

                set;

       }

       public string StockingUM {

                get;

                set;

       }

    public decimal Price {

                get;

                set;

     }

     public decimal Weight {

                g…

  • Does anyone have XamDataGrid code they would be willing to Share???!!!

    I am have an issue (me related) trying to understand how to save all changes in the grid back to the database.  I am using table adapters.  This should be straight forward but I cannot make it work.

     Does anyone have any code they would be willing to share…

  • Full Binding example

    Is there an example showing update/insert/delete with the XAMdatagrid.  I find the binding xamdatagrid in Expression Blend and VS but that only shows showing records.

     I want a full example using the grid and tabeadapters.

     Thankyou

  • Assistance needed with xamdatagrid!!!

    Great grid, great example for presenting data.

    But I want to save all the changes that the user has made back to the database and I can't figure out how.  I am using strongly typed dataset just like int the binding pdf document.  But I can't figure…

  • XamDatagrid Unboundfield with ComboBox no items

    Hi I have an XamDatagrid with an UnboundField that is an ComboEditor. So when im setting the DataContext of the Page which holds the DataGrid with an ViewModel.

    _DetailFenster.DataContext = _ReminderViewModel;

    Everything is Binded only the ComboBox…

  • Grid with variable number of columns

    Hello,

    I need to be able to support a grid which at design time will not have a set number of columns.  For example, the app will run, get some data from the server and create some objects.  Depending on the response from the server, I may have a…

  • XamDataGrid Change Date Format of an Unbound Field

    Hello, I have an Unbound Field in an Xamdatagrid. There should be a Date displayed but in a german order format. So I Changed the Mask from the XamDateTimeEditor. But Now it Only Displays the Day like 11/ / and the month and year are swallowed.

    The style…

  • Setting XamDataGrid.DataSource every several seconds causes issues

    My application acts like a monitor on a database.
    Every 5 seconds I'm retrieving the data and setting it to the grid.DataSource.

    public void SetDataSource(object dataSource)
    {
        //Before the data changes we save the selected DataId and the scroller ofset…

  • xamdatagrid's cell value can't display

    (sorry for my bad english)

    when i user binding:

    xaml:

     <Grid Name="Fgrid_bjDetail">

    XamTextEditor Name="D_Fxte_Remark"  Text="{Binding REMARK}"

     </Grid >

    code:

    Private Sub xdg_ImpForecast_SearchList_MouseDoubleClick…

  • How to bind to Record.Index?

    I have a custom user control ( 'InventoryImageBtn' )  that I'm embedding in an unboud field of my XamDataGrid. I bind it's source to a bound field that contains a path to an image if it exists (in this case the control displays the image), if not…