c1FlexGrid - how to use different "AllowUserResizing"?

Posted by: roeikup on 13 December 2017, 3:01 am EST

    • Post Options:
    • Link

    Posted 13 December 2017, 3:01 am EST

    i’m using c1FlexGrid and i want to use “AllowUserResizing” in my grid.

    i want to allow different setting to the rows and the columns.

    i need to set the rows to “AllowUserResizeSettings.flexResizeRowsUniform”

    and set the columns to “AllowUserResizeSettings.flexResizeColumns”.

    it seem to runs one function over the other.

    please if you can help me

    thank you.

  • Posted 13 December 2017, 9:00 pm EST

    Hi,

    In C1FlexGrid for WinForms, you can try to achieve the same using BeforeResizeRow and AfterResizeRow events as below:

        Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
            
            C1FlexGrid1.AllowResizing = AllowResizingEnum.Both
            AddHandler C1FlexGrid1.BeforeResizeRow, AddressOf C1FlexGrid1_BeforeResizeRow
            AddHandler C1FlexGrid1.AfterResizeRow, AddressOf C1FlexGrid1_AfterResizeRow
        End Sub
    
        Private Sub C1FlexGrid1_AfterResizeRow(sender As Object, e As RowColEventArgs)
            C1FlexGrid1.AllowResizing = AllowResizingEnum.Both
        End Sub
    
        Private Sub C1FlexGrid1_BeforeResizeRow(sender As Object, e As RowColEventArgs)
            C1FlexGrid1.AllowResizing = AllowResizingEnum.RowsUniform
        End Sub
    

    Thanks,

    Singh

  • Posted 17 December 2017, 12:59 am EST

    thank you… it works.

Need extra support?

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

Learn More

Forum Channels