2008-10-16から1日間の記事一覧

データバインドを有効にしているDataGridViewの行を削除する

データバインドを有効にしているDataGridViewの行を削除する http://d.hatena.ne.jp/Kazzz/20050321/p1 絶対忘れるのでメモ。 CurrencyManager cm = (CurrencyManager)dgv.BindingContext[this.dgv.DataSource]; DataRowView drv = (DataRowView)cm.Current;…

KeyValuePairを使ってComboBoxにキー/値を格納

KeyValuePair<int, String>[] AuthGroup = new KeyValuePair<int, String>[] { new KeyValuePair<int, String>(0, "一般ユーザ"), new KeyValuePair<int, String>(1, "システム管理者"), new KeyValuePair<int, String>(2, "マネージャー") }; としておいて、該当のComboBox側で //「権限」コンボボックスの設定 this.cmbAuth.D</int,></int,></int,></int,></int,>…

同時実行例外処理を実装する

チュートリアル:同時実行例外の処理 http://msdn.microsoft.com/ja-jp/library/ms171936(VS.80).aspx より。