akgulebubekir / Maui.DataGrid

DataGrid component for Maui
MIT License
248 stars 49 forks source link

ActiveRowColor is not working in android release mode #136

Open borbirob opened 9 months ago

borbirob commented 9 months ago

Describe the bug When I set the ActiveRowColor properite it's working fine in debug mode, but not in realese nor in real device. Tried to set that propertie in different ways but neither was succesfull.

Codes what I tried

<!--In xaml--!>
<dg:DataGrid.ActiveRowColor>
    <Color>#FFB0C4DE</Color>
</dg:DataGrid.ActiveRowColor>

<dg:DataGrid x:Name="dataGrid"
                Grid.Row="1" 
                SelectionEnabled="True" 
                ItemsSource="{Binding SomeItems}"
                SelectedItem="{Binding Selecteditem}"
                RowHeight="50" 
                HeaderHeight="50" 
                BorderColor="Gray"
                HeaderBackground="LightGray" 
                HeaderBordersVisible="True"
                RefreshingEnabled="False"
                ItemSelected="OnRowSelected"
                ActiveRowColor="LightSteelBlue">

//In code behind
dataGrid.ActiveRowColor = Colors.LightSteelBlue;
symbiogenesis commented 4 months ago

Is this fixed now with the latest versions of MAUI and the latest DataGrid?