Flexgrid custom rows

Posted by: devcode.ou on 20 March 2023, 6:06 pm EST

  • Posted 20 March 2023, 6:06 pm EST

    Hi

    i need to customize the rows in the flexgrid net6, in the previous version i used the LoadedRows event, can you give me an example how is possible to do it now?

    Is it possible with a xaml Style?

    Thank you

  • Posted 21 March 2023, 2:04 pm EST

    Hi Beniamino,

    This issue is under discussion with the development team. [Internal Tracking ID: C1XAML-31207]

    We will update you on this as soon as we hear back from them.

    Thanks & Regards,

    Aastha

  • Posted 19 December 2023, 8:52 pm EST

    Hi Beniamino,

    The developers want to know how you were customizing your UI earlier in FlexGrid’s LoadedRows event, so that we can provide you with a solution to achieve the desired behavior using FlexGrid NET6/NET8 API.

    Thanks & Regards,

    Aastha

  • Posted 22 December 2023, 9:08 pm EST

    I used it to autosize the rows based on the content, usually textual, as this

                flexgrid.Dispatcher.BeginInvoke(new Action(() => 
                                                            flexgrid.AutoSizeRows(flexgrid.Rows.Count - 1, 15) 
                                                            ));
    
    or
    		foreach (var row in flexgrid.Rows)
    			row.Height=heightrow;
  • Posted 25 December 2023, 11:27 pm EST

    Hi Beniamino,

    You can achieve the desired behavior by handling FlexGrid’s Loaded event as shown in the following code snippet:

    private void grid_Loaded(object sender, RoutedEventArgs e)
    {
        grid.AutoSizeRows(0, grid.Rows.Count - 1);
    }

    Kindly refer to the attached sample for full implementation. See AutoSizeRowsNET6.zip

    Thanks & Regards,

    Aastha

Need extra support?

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

Learn More

Forum Channels