Vaibhav Posted March 9, 2022 Report Share Posted March 9, 2022 In VB6 application, Many flexgrid is used which it has create it as DatagridFlexView in c#.net now on changing fore color, or back color even any style changes is not getting applied on it. i quick watch it is showing but in front end it is not reflecting. kindly suggest. Link to comment Share on other sites More sharing options...
Mobilize.Net Staff OlmanQuesada Posted April 25, 2022 Mobilize.Net Staff Report Share Posted April 25, 2022 Hello Vaibhav,Could you share the lines of code that you're using in your migrated code to change the forecolor? Link to comment Share on other sites More sharing options...
Vaibhav Posted April 26, 2022 Author Report Share Posted April 26, 2022 It is simple and showing appliyed in quick view but in form it is not reflecting . switch (Code.Convert(Grid.Rows[pRow].Cells[pCol].Value.ToString())) { case "created": Grid.CellForeColor = Color.Gray; break; } Link to comment Share on other sites More sharing options...
Mobilize.Net Staff OlmanQuesada Posted March 8 Mobilize.Net Staff Report Share Posted March 8 It seems that it's an issue related to the .Net DataGrid View with this property. CellBackColor works, but this one doesn't affect the cell color. You can try changing cell style using CellStyleContentChanged event. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now