C1 FlexGrid

Posted by: 666.temp.mail on 20 August 2018, 12:27 am EST

    • Post Options:
    • Link

    Posted 20 August 2018, 12:27 am EST

    Hi. i create ApplyCellStyles to set style in column [DAYIELD],

    the Data Change Real Time in the other Columns, but this column not update, not style

    and not data until i scroll and back this is refresh.

    my data change in diffrent thread so i cant and dont want to refresh grid manually,

    want is the problem?

  • Posted 20 August 2018, 1:11 am EST

    UPDATE.

    when i call “DataTable.AcceptChanges();” in the class that change the data the grid is update too,

    But i cant call this any change in DataRow because this is Real Time App,

    and if i run AcceptChanges on DataTbale in very slow down my App.

    wait for help… thanks.

  • Posted 20 August 2018, 9:13 pm EST

    Hello,

    To the extent I understand your concern, you would probably need to invoke C1DataGrid’s CollectionView.Refresh method after you are done modifying the data in other thread.

    I have attached a demo sample for the same. Could you please try running it at your end and share your observations. The application uses BackgroundWorker to update the DataTable to which the grid is bound.

    Hope it helps !

    Thanks,

    Ruchir

    ApplyCellStyles_C1FlexG.zip

  • Posted 21 August 2018, 12:33 am EST

    Thanks, Great Sample!

    But my problem that i have one DataTable that all the time Update RT very fast and with a lot of Changes in other class, ist not possible every change to send refresh.

    and the user can create multi Grids that connect to one DataTable (diffrent Filter & etc’) so its very dymanic, and the cell is Update anyway, only the style is not update, there is no way to create update Style on TextChange in the textbox? or something like that?

  • Posted 22 August 2018, 12:54 am EST

    Hi,

    In that case, you may invoke Invalidate method of C1FlexGrid just after updating the data in datatable. This would make to re-create visual elements.

    Thanks,

    Ruchir

  • Posted 22 August 2018, 2:15 am EST

    thank, i found a way to fix this out.

    but now i found one more thing…

    why after the data update the sort column not update the data sort?

    sample : if i sort [Price] column, and the data update to a new Prices the data still sorted by the old prices and not the new Prices.

    i check in your sample too :

    https://www.grapecity.com/en/blogs/financial-data-displays-using-flexgrid

    and also here the same bug!.

    wait for reply, Thanks

  • Posted 22 August 2018, 9:16 pm EST - Updated 4 October 2022, 12:14 am EST

    Hi,

    Did you try this behavior with the sample I shared earlier. While running my sample I could not replicate that behavior at my end. See attached movie showing the behavior at my end[using Invalidate method].

    Could you please check the attached sample at your end.

    Thanks,

    Ruchir



    ApplyCellStyles_Sort.zip

  • Posted 22 August 2018, 10:52 pm EST

    Hi , in the last sample this is working well but this is not what im looking for…

    i want that this is work on [BID] column in the finance sample :

    https://www.grapecity.com/en/blogs/financial-data-displays-using-flexgrid

    the diffrent is what way of the update data metod.

    i will be glad if you can to check this case

    Thanks!

  • Posted 23 August 2018, 7:07 pm EST

    Hi,

    This is probably a collection issue, which that sample application uses. However, to be sure I would need some more time.

    Meanwhile, I would suggest you to try setting IsLiveSorting to true. For details kindly refer: https://docs.microsoft.com/en-us/dotnet/api/system.componentmodel.icollectionviewliveshaping.islivesorting?redirectedfrom=MSDN&view=netframework-4.7.2#System_ComponentModel_ICollectionViewLiveShaping_IsLiveSorting

    Thanks,

    Ruchir

  • Posted 2 September 2018, 1:22 am EST

    Hi, did you have a anser for me?

    IsLiveSorting is working good on classing wpf datagrid, but not in yours

    thanks :slight_smile:

  • Posted 5 September 2018, 10:50 pm EST

    Hello,

    I am modifying the article application to make its sorting work as you desire. I would share the modified sample here soon.

    Kind Regards,

    Ruchir

  • Posted 10 September 2018, 3:10 pm EST

    Hello,

    The requirement has been forwarded to the development team [ID:342415]. I will keep you updated with the progress/information achieved from them.

    Regards,

    Ruchir

  • Posted 18 September 2018, 2:33 pm EST

    Hello,

    As we were understanding earlier, the limitation is related to the Collection being used, team has confirmed it, only DataTable can fit this request. Therefore, we have modified the article sample accordingly and attached here for reference.

    Kind Regards,

    Ruchir

    FlexGridSyncDataUpdatesSample.zip

Need extra support?

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

Learn More

Forum Channels