Binding to Flex Grid

Posted by: yuvaopens on 6 February 2018, 12:01 pm EST

    • Post Options:
    • Link

    Posted 6 February 2018, 12:01 pm EST

    Hi All,

    I Need Component One Flex Grid(C1 Flex Grid) for few features like Freezing columns and Rows. I had merged the Columns 3,3,3,3... and Shown Mon, Tue, Wed, Thu like Below Structure.
    

    Name ------ Monday ------ ------- Tuesday -------- --------- Wednesday ----------

    Yuvi 1 2 3 1 2 3 1 2 3

    Now I got values from DB through Datatable. I Want to bind the Datatable Values to that Component One flex Grid. Anyone could help me. I Already Tried Using BindingSource, DataSource, DataBinding...... Please help me to come out of this.
    

    Thanks In Advance,

    Yuvaraj N S

  • Posted 7 February 2018, 5:02 am EST

    Hello,

    As our understanding, you need to do custom merging of column header. You could use custom merging feature of C1FlexGrid for implementing the same. Please refer the attached sample for implementing the same. Also, you can assign the datatable object to the “DataSource” property of “C1FlexGrid” for binding the grid.

    If our assumption is incorrect, could you please explain your requirement in details.

    Thanks,

    Mohit

    Prj_Merging.zip

  • Posted 7 February 2018, 8:29 am EST

    Hi Mohit,

    Thanks for the Answer. I Had Already done that Custom Merging. Now I Want to bind Datatable object to the same Grid. If I Put the below code to bind the Datatable to FlexGrid, I'm losing the custom Logic implemented to Merge the Header. Also I'm Not getting the Data in the Flex Grid.
    

    FlexGrid1.DataSource = DatatableObject

  • Posted 8 February 2018, 6:42 am EST

    Hello,

    In my opinion, first you need to bind the datatable with the C1FlexGrid then you can use custom merging feature of flexgrid as shown in previously attached sample.

    Could you please share your scenario which needs to do the custom merging before the binding.

    Also, it is very helpful if you could share the same with us.

    Thanks,

    Mohit

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels