Click here to Skip to main content
15,891,828 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Can Anybody post an Article or a simple demo on WPF datagrid that displays the status of a application ( for instance some server showing the information as(Running/Stopped)) , so that it highlights the datagrid cell as Red-when server=stopped and Green when the server status=running?

It would be really helpful !
Thanks
-Indi
Posted
Updated 12-Dec-12 5:40am
v2
Comments
Sergey Alexandrovich Kryukov 12-Dec-12 11:30am    
Why a database and a grid for status? You certainly mean something else. I would not expect an article on this topic though.
--SA
BuBa1947 12-Dec-12 11:35am    
I have already setup'd a monitoring agent that looks over my server statuses.
My database is already defined and is running well. Now I have to bring this to a presentation layer, to display the server status.
So I decided to display in a form of traffic signal (RED-stopped, Green-running and Yellow for critical). But I don't have much knowledge in WPF animation.

1 solution

Hi,

Please check http://wpftutorial.net/DataGrid.html[^]

This site is best for WPF beginner

Best luck
 
Share this answer
 
Comments
BuBa1947 12-Dec-12 11:32am    
I visited this link already. anyways thanks for the effort :)
AmitGajjar 12-Dec-12 11:38am    
When i have started learning WPF, i used to visit this site.
AmitGajjar 12-Dec-12 11:39am    
you still have issue ? have you tried something ?
BuBa1947 12-Dec-12 11:45am    
but it is highlighting the starting of the row , but not the exact cell..
BuBa1947 12-Dec-12 11:42am    
Yes,I have already tried something..
I created a converter that gets the cell value, for instance Value='Stopped'
and it highlights as red.

public class myConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
string cellvalue = value.ToString();
return cellvalue = ("Stopped");
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
return false;
}
}

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900