Posted 21 March 2023, 3:06 am 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
Forums Home / ComponentOne / WPF Edition
Posted by: devcode.ou on 21 March 2023, 3:06 am EST
Posted 21 March 2023, 3:06 am 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, 11: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 20 December 2023, 5:52 am 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 23 December 2023, 6:08 am 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 26 December 2023, 8:27 am 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