-
Jun 29th, 2015, 03:54 PM
#1
Thread Starter
New Member
Controlling forecolor on wpf datagrid row at app startup
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?
-
Jun 29th, 2015, 04:31 PM
#2
Re: Controlling forecolor on wpf datagrid row at app startup
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|