Click here to Skip to main content
15,880,469 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
hey guys, new problem:
i have 2 datagridview in my wpf window: DgIncome and DgOutcome.
the DgIncome foreground is set to green and the DgOutcome foreground is set to red.
on both datagridviews, when i click one of the rows, the cell foreground changes to white and that ok.
whats the problem? assuming i clicked one item in the DgIncome, the row is now white. now, i go to the DgOutcome and click it. the result: the item in the DgIncome does not return to its original color, Green, but changes to black. it goes both ways.
i tryed solving it threw the <style> or the datagridview properties but with zero success.
any code would be usefull...
thanks,
oron.
Posted

1 solution

Private Sub DgOutcome_SelectionChanged(sender As Object, e As SelectionChangedEventArgs) Handles DgOutcome.SelectionChanged
DgIncome.UnselectAll()
End Sub
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900