META NOTE
メモ
2013年3月19日火曜日
bootstrap datepicker defaultValue
https://github.com/eternicode/bootstrap-datepicker
これ使った場合、restした時、困ったので、
とりあえず以下を追加して対応。
$.fn.datepicker.Constructor.prototype.setDefaultValue=function(value){
var formatted = this.getFormattedDate();
if (!this.isInput) {
if (this.component){
this.element.find('input').get(0).defaultValue=formatted;
}
this.element.data('date', formatted);
} else {
this.element.val(formatted);
}
};
2010年12月19日日曜日
C# DataGridView DataGridViewComboBoxColumn でのBindingSource 使用時。
DataRowView rv = (DataRowView)column.BindingSource.AddNew();
rv.BeginEdit();
rv[column.ValueMember] = dlg.Value;
rv.EndEdit();
どうやら DataGridViewComboBoxColumn に BindingSource で
DataSet を連結したとき、BeginEdit、EndEdit
しないと DataGridView に直接
grid.CurrentCell.Value = dlg.Value;
のように値をぶち込むと
DataGridViewComboBoxCell の値が有効ではありません
とエラーが出てしまう。
2009年12月13日日曜日
usb マウント 半自動
/dev/sdc1 /media/usb0 ntfs user,noauto,umask=0022 0 0
/dev/sdd1 /media/usb1 ntfs user,noauto,umask=0022 0 0
/dev/sde1 /media/usb2 ntfs user,noauto,umask=0022 0 0
/dev/sdd1 /media/usb1 ntfs user,noauto,umask=0022 0 0
/dev/sde1 /media/usb2 ntfs user,noauto,umask=0022 0 0
2009年12月12日土曜日
登録:
投稿 (Atom)