Home Forums WinForms controls Xceed Grid for WinForms Master/Detail grid binding to an business object

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #17589 |

    Hi,

     i am binding a business object to a winforms xceed grid using the following code:

     this.gridcontrol1.BeginInit();
             this.gridcontrol1.SetDataBinding(this.ParentTable, “”);

             DetailGrid childGrid = new DetailGrid();
            this.gridcontrol1.DetailGridTemplates.Add(childGrid);
             childGrid .SetDataBinding(null, “IterationItems”);
             childGrid .HeaderRows.Add(new ColumnManagerRow());
            this.gridcontrol1.EndInit();

     I AM NOT using a database for this data. i am using an business object.

     It is binding properly and able to display the records, But problem arises when there are no child items.  As per my requirement, there might be chance that there will no child records for some of the parent items. How can i resolve this?   i want to display parent with no child items.

    Imported from legacy forums. Posted by saumya (had 1523 views)

    Xceed Support
    Member
    Post count: 5658

    Hi Saumya, 

    What exactly is the problem you are having when a parent item has no child items?

    Can you send us a sample application that shows what you are trying to do so that we investigate this in more detail?

    You can send it to support@xceed.com, please include a reference to this forum thread in your email.  

    Imported from legacy forums. Posted by Michel [Xceed] (had 163 views)

    User (Old forums)
    Member
    Post count: 23064

    I am getting an exception as Value cannot be null : Parameter name :datasource.  Send an detailed email to support@xceed.com

    Imported from legacy forums. Posted by saumya (had 1393 views)

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.