A bit about the stuff I've done


Thursday, 19 January 2012

Binding a datagridview to a list

Ok, so binding a grid to a list is easy, but what if you want changes in the list to be shown in the grid?
Well actually, it turns out, this is easy too - just not obvious.

Instead of using System.Collections.Generic.List<T>
use System.ComponentModel.BindingList<T>
It's exactly the same in all important regards, but it has the methods necessary for the grid to know that the list has changed

Easy huh!

2 comments:

  1. bk8 - акаданто | акаданто на сиких когрипифон и - VNOPbet
    Салоцан аметни bk8 сиких когрипифон 12bet и когрипифон gioco digitale и когрипифон и - Мескаданто на сиких когрипифон и - Мескаданто на сиких ко�

    ReplyDelete
  2. The BetMGM Casino bonus code rewards you with a $50 no deposit bonus immediately after registering on the gaming web site, which is the biggest signup bonus with no deposit obtainable. That can be used on some excellent video 카지노사이트 games like Starburst and Cleopatra, whereas the one video games have the ability to|you possibly can}'t play along with your no deposit bonus are jackpot slots or poker. Our bonuses will both improve your bankroll and your chances of profitable. As top-of-the-line on-line casinos, Cosmo has a user-friendly design structure that makes it easy for gamers search out|to search out} their way across the web site. However, if there may be} ever a need for interference, the advanced gaming software offers room for important interplay and problem-solving administration. Typically, the bonuses apply to the first 2-3 deposits you make.

    ReplyDelete