본문 바로가기
카테고리 없음

DevExpress Banded Grid에 RepositoryItem추가할 때

by 캡틴노랑이 2018. 6. 14.
반응형
Banded Grid에 RepositoryItem추가할 때
DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn colProgress = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();            
DevExpress.XtraEditors.Repository.RepositoryItemProgressBar repProgress = new DevExpress.XtraEditors.Repository.RepositoryItemProgressBar();

repProgress.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(84)))), ((int)(((byte)(156)))), ((int)(((byte)(189)))));
repProgress.LookAndFeel.Style = DevExpress.LookAndFeel.LookAndFeelStyle.Flat;
repProgress.LookAndFeel.UseDefaultLookAndFeel = false;
repProgress.Name = "repProgress";
repProgress.ProgressViewStyle = DevExpress.XtraEditors.Controls.ProgressViewStyle.Solid;
repProgress.ShowTitle = true;
repProgress.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(84)))), ((int)(((byte)(156)))), ((int)(((byte)(189)))));

colProgress.AutoFillDown = true;
colProgress.Caption = "전송율";
colProgress.ColumnEdit = repProgress;
colProgress.FieldName = "ProgPercents";
colProgress.Name = "colProgress";
//colGOP.RowIndex = 1;
colProgress.Visible = true;
colProgress.Width = 209;            

grdDetail3.RepositoryItems.Add(repProgress);
bvwDetail3.Bands[0].Columns.Add(colProgress);//bandedGrid에 올릴 때는 band에 추가 해야됨. 


반응형

댓글