Microsoft Silverligh ..
[
2ch
|
▼Menu
]
■コピペモード
□
スレを通常表示
□
オプションモード
□このスレッドのURL
■項目テキスト
388:デフォルトの名無しさん 09/03/13 11:49:46 DataGridの列をC#で追加してるのですが col = new DataGridTextColumn(); col.Binding = new System.Windows.Data.Binding("NO"); col.Header = "番号"; dataGrid1.Columns.Add(col); 中央揃えや右揃えにするにはどうすればよろしいですか? 389:デフォルトの名無しさん 09/03/13 15:24:30 こんな感じでいけました Style style = new Style(typeof(TextBlock)); style.Setters.Add(new Setter(TextBlock.HorizontalAlignmentProperty, HorizontalAlignment.Right)); Resources.Add("RightText", style); DataGridTextColumn col = new DataGridTextColumn(); col.Binding = new System.Windows.Data.Binding("NO"); col.Header = "No."; col.ElementStyle = Resources["RightText"] as Style; dataGrid1.Columns.Add(col);
次ページ
最新レス表示
スレッドの検索
類似スレ一覧
話題のニュース
おまかせリスト
▼オプションを表示
レスジャンプ
mixiチェック!
Twitterに投稿
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch
4865日前に更新/180 KB
担当:undef