-
May 11th, 2022, 11:24 PM
#1
Thread Starter
Addicted Member
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
-
May 11th, 2022, 11:39 PM
#2
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.
-
May 11th, 2022, 11:58 PM
#3
Thread Starter
Addicted Member
Re: SHould be simple but wow. Datagrid cell value
Yes the WPF Datagrid. I meant to post in the WPF forum but goofed
-
May 12th, 2022, 12:19 AM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|