Reputation: 4222
I have a custom skin applied to a Flex 4 spark datagrid. One really annoying issue I am having is finding the ability to override or change the selected row border color. I was able to set the selectionColor just fine but the border is still the default light blue color. I need it to be yellow.
Anyone know where I can find this style or override this border that is being set when selection happens within the skin itself.
thanks, -Matthew
Upvotes: 2
Views: 3392
Reputation: 3338
A bit late, but FYI there is no need to edit the skin, there is a style caretColor
on spark DataGrid:
<s:DataGrid caretColor="0xffffff" ...
Hope that helps
Upvotes: 5
Reputation: 7588
I believe it's the caretColor style. If not, you can do this:
Create a skin file for the spark datagrid based on spark.skins.spark.DataGridSkin Now yous hould have a copy of the DataGrid skin, change the following code,
<s:stroke>
<!--- @private -->
<s:SolidColorStroke id="caretIndicatorFill" color="0x0167FF" weight="1"/>
</s:stroke>
Change 0x0167FF to the desired color..
Upvotes: 5