Results 1 to 4 of 4

Thread: SHould be simple but wow. Datagrid cell value

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Dec 2012
    Posts
    136

    SHould be simple but wow. Datagrid cell value

    I want to check a cell value in each row of my datagrid for a negative number and set the background color accordingly. I can't find any way to loop through the rows and check the column (well I did but it shows the itemssource and not the displayed cell content so with a converter it did no good at all)

    I tried using the LoadingRow event but that never actually triggers (tried iterating a variable and it never increased in value so I know it was never called)

    I can't find any examples of a <style> that will trigger based on positive or negative values either.

    DataGridView = Easy while Datagrid = Mystery

  2. #2
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    109,288

    Re: SHould be simple but wow. Datagrid cell value

    Are you talking about a WPF DataGrid? You need to be specific because there are multiple controls with that name. You should be specific regardless. VB.NET can be used to build all manner of projects based on various technologies and we need to know what technology you're using in order to provide appropriate advice.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Dec 2012
    Posts
    136

    Re: SHould be simple but wow. Datagrid cell value

    Yes the WPF Datagrid. I meant to post in the WPF forum but goofed

  4. #4
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    109,288

    Re: SHould be simple but wow. Datagrid cell value

    You can click the Report Post icon and send a message to the mods, asking them to move the 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