Warning: Table './planetar_drpl3/sessions' is marked as crashed and should be repaired query: SELECT u.*, s.* FROM users u INNER JOIN sessions s ON u.uid = s.uid WHERE s.sid = '43327cbdddaf0e58ce000625e5fc2669' in /home/planetar/public_html/blendtips/includes/database.mysql.inc on line 172

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/planetar/public_html/blendtips/includes/database.mysql.inc:172) in /home/planetar/public_html/blendtips/includes/bootstrap.inc on line 811

Warning: Cannot modify header information - headers already sent by (output started at /home/planetar/public_html/blendtips/includes/database.mysql.inc:172) in /home/planetar/public_html/blendtips/includes/bootstrap.inc on line 488

Warning: Cannot modify header information - headers already sent by (output started at /home/planetar/public_html/blendtips/includes/database.mysql.inc:172) in /home/planetar/public_html/blendtips/includes/bootstrap.inc on line 489

Warning: Cannot modify header information - headers already sent by (output started at /home/planetar/public_html/blendtips/includes/database.mysql.inc:172) in /home/planetar/public_html/blendtips/includes/bootstrap.inc on line 490

Warning: Cannot modify header information - headers already sent by (output started at /home/planetar/public_html/blendtips/includes/database.mysql.inc:172) in /home/planetar/public_html/blendtips/includes/bootstrap.inc on line 491
DataTemplate, value converter and ObservableCollection | Drupal

DataTemplate, value converter and ObservableCollection

warning: Cannot modify header information - headers already sent by (output started at /home/planetar/public_html/blendtips/includes/database.mysql.inc:172) in /home/planetar/public_html/blendtips/includes/common.inc on line 141.

A couple of days ago, I was working on program that can process the results of students.  I wanted to create a listboxitem for every student that contains a textblock for the name and a textbox to insert or update the result. After asking advise on different forums and a lot of trying and failing, I finally found a way to get this done. I use a ObservableCollection for data binding to my listbox.  Use a datatemplate to put different controls in the itemtemplate, and a value converter to indicate if the student is passed or not. My conclusion: an ObservableCollection is very powerful! You can download the tutorial and the entire source code:

More tutorials can be found on my blog: http://wpf-tutorials.livejournal.com