Quantcast
Channel: VBForums - WPF, WCF, WF
Viewing all articles
Browse latest Browse all 256

Controlling forecolor on wpf datagrid row at app startup

$
0
0
I am using VS2013 express wpf vb.net. On startup, I have the app populate a datagrid bound to an observablecollection, so that the datagrid acts like an activity log. I dynamically add rows to that datagrid. However, on that datagrid based activity log, I want to be able to add selective rows with a red forecolor, as a way of logging when a system problem has occurred and needs attention.

The problem that I am facing is that I can programmatically select a specific datagrid row and change its forecolor, but only after I have clicked the datagrid with the mouse. On startup, I cannot anticipate that the user will click the datagrid with the mouse, so I would like a workaround. How do I gain control of programmatic datagrid row selection if the datagrid never gets clicked by the mouse?

Viewing all articles
Browse latest Browse all 256

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>