Conditional CellTemplete controls at Runtime in Silverlight DataGrid - Online Free Computer Tutorials.

'Software Development, Games Development, Mobile Development, iOS Development, Android Development, Window Phone Development. Dot Net, Window Services,WCF Services, Web Services, MVC, MySQL, SQL Server and Oracle Tutorials, Articles and their Resources

Sunday, August 7, 2011

Conditional CellTemplete controls at Runtime in Silverlight DataGrid

Our application required few rerecords to be displayed over grid .. simplest thing we can do even while sleeping Smile.But the challenge lies in displaying different set of control based on business rule.Let me clear with a example

We have a set of Customer list need to be displayed over Grid .The Customer object holds a property called Mood ,either the mood can be Happy,Neutral or Angry.Well it doesn't stops here .If the Mood is Not available the Cell must display "NA" and if the property is null then it should display a HyperLinkbutton which in turn will send a request to the particular customer seeking for feed back.the prototype for particular control can be seen bellow .

Read More....

No comments:

Post a Comment