Results 1 to 2 of 2
  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2009
    Garland TX

    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?

  2. #2
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    South Louisiana

    Re: Controlling forecolor on wpf datagrid row at app startup

    Moved to WPF.

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


Click Here to Expand Forum to Full Width

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.