93 references to
System.Windows.Forms (93)
winforms\Managed\System\WinForms\DataGrid.cs (65)
3021
DataGridColumnStyle column = myGridTable.GridColumnStyles
[
columnIndex];
3033
DataGridColumnStyle column = myGridTable.GridColumnStyles
[
columnIndex];
3523
if (firstVisibleCol > -1 && firstVisibleCol < columns.Count && columns
[
firstVisibleCol] == editColumn)
3620
for (int i = this.firstVisibleCol - 1; i >= 0 && cols
[
i].Width == 0; i --) {
3627
for (int i = this.firstVisibleCol; i > -1 && i < cols.Count && cols
[
i].Width == 0; i ++) {
4001
if (!coll
[
currentCol].ReadOnly)
4055
trackColumnHeader = this.myGridTable.GridColumnStyles
[
location.col].PropertyDescriptor;
4165
if (this.myGridTable.GridColumnStyles
[
location.col].MouseDown(location.row, e.X, e.Y))
4341
PropertyDescriptor prop = this.myGridTable.GridColumnStyles
[
ci.col].PropertyDescriptor;
4732
DataGridColumnStyle gridColumn = myGridTable.GridColumnStyles
[
j];
4763
DataGridColumnStyle column = myGridTable.GridColumnStyles
[
col];
4788
if (this.myGridTable.GridColumnStyles
[
i].PropertyDescriptor != null) {
4817
if (cols
[
i].PropertyDescriptor == null) {
4821
cx += cols
[
i].Width;
4829
this.horizontalOffset += cols
[
i].Width;
4937
DataGridColumnStyle column = myGridTable.GridColumnStyles
[
trackColumn];
4947
if (this.myGridTable.GridColumnStyles
[
i].PropertyDescriptor != null) {
4967
if (cols
[
i].PropertyDescriptor == null) {
4971
cx += cols
[
i].Width;
4980
this.horizontalOffset += cols
[
i].Width;
5062
object value = columns
[
col].GetColumnValueAtRow(listManager, row);
5063
resizeHeight = Math.Max(resizeHeight, columns
[
col].GetPreferredHeight(g, value));
5533
if (columns
[
curCol].PropertyDescriptor != null)
5534
cx += columns
[
curCol].Width;
5547
if (cx + columns
[
i].Width > visibleWidth)
5550
if (columns
[
i].PropertyDescriptor != null)
5551
cx += columns
[
i].Width;
5613
if (columns
[
first].PropertyDescriptor != null)
5614
cx += columns
[
first].Width;
5625
negOffset = columns
[
first].Width - (cx - horizontalOffset);
5916
editColumn = myGridTable.GridColumnStyles
[
currentCol];
6207
if (columns
[
col].PropertyDescriptor != null)
6208
cx += columns
[
col].Width;
6230
if (columns
[
i].PropertyDescriptor != null)
6231
offset += columns
[
i].Width;
6244
Debug.Assert(myGridTable.GridColumnStyles
[
col].PropertyDescriptor != null, "why would we need the coordinate of a column that is not visible?");
6245
int width = myGridTable.GridColumnStyles
[
col].Width;
6257
if (columns
[
i].PropertyDescriptor != null)
6258
sum += columns
[
i].Width;
6555
if (columns
[
col].width != -1) continue;
6557
columns
[
col].width = preferredColumnWidth;
6594
Debug.Assert(gridColumns
[
column].PropertyDescriptor != null, "how can we invalidate a column that is invisible?");
6601
columnArea.Width = gridColumns
[
column].Width;
6609
x += gridColumns
[
i].Width;
7157
if (gridColumns
[
col].PropertyDescriptor == null)
7163
bool columnSorted = sortProperty != null && sortProperty.Equals(gridColumns
[
col].PropertyDescriptor);
7174
textBounds.Width = gridColumns
[
col].Width -
7181
textBounds.Width = gridColumns
[
col].Width -
7213
HorizontalAlignment colAlignment = gridColumns
[
col].Alignment;
7225
g.DrawString(gridColumns
[
col].HeaderText,
7519
DataGridColumnStyle column = columns
[
currentCol];
7543
DataGridColumnStyle column = columns
[
j];
7632
if (cols
[
i].PropertyDescriptor != null)
7639
if (cols
[
i].PropertyDescriptor != null)
7684
if (cols
[
i].PropertyDescriptor != null) {
7691
if (cols
[
i].PropertyDescriptor != null) {
8331
if (cols
[
i].PropertyDescriptor != null) {
8338
if (cols
[
i].PropertyDescriptor != null) {
8350
cols
[
CurrentColumn].ConcedeFocus();
8395
cols
[
CurrentColumn].ConcedeFocus();
8657
if (gridColumns
[
i].PropertyDescriptor != null)
8668
if (gridColumns
[
i].PropertyDescriptor != null)
8669
newColOffset += gridColumns
[
i].Width;
8738
gridCols
[
i].PropertyDescriptor = null;
9113
return dataGrid.myGridTable.GridColumnStyles
[
index].HeaderAccessibleObject;
winforms\Managed\System\WinForms\DataGridColumn.cs (1)
1226
if (cols
[
i] == this.owner) {
winforms\Managed\System\WinForms\DataGridColumnCollection.cs (3)
324
this
[
i].ReleaseHostedControl();
350
this
[
i].ReleaseHostedControl();
571
this
[
i].PropertyDescriptor = null;
winforms\Managed\System\WinForms\DataGridParentRows.cs (6)
364
colsHeight = Math.Max(colsHeight, cols
[
j].GetMinimumHeight());
606
string colName = columns
[
colNum].HeaderText + " :";
624
object value = columns
[
colNum].GetColumnValueAtRow((CurrencyManager) dataGrid.BindingContext[dgs.DataSource, dgs.DataMember],
626
int size = columns
[
colNum].GetPreferredSize(g, value).Width;
927
string colName = cols
[
i].HeaderText + ": ";
948
cols
[
i].Paint(g, paintBounds, (CurrencyManager) dataGrid.BindingContext[dgs.DataSource, dgs.DataMember],
winforms\Managed\System\WinForms\DataGridRow.cs (15)
113
if (columns
[
i].PropertyDescriptor != null)
114
h = Math.Max(h, columns
[
i].GetMinimumHeight());
242
if (columns
[
i].PropertyDescriptor != null)
243
cx += columns
[
i].Width;
248
columns
[
col].Width - borderWidth,
341
DataGridColumnStyle currentColumn = columns
[
currentColIndex];
493
if (columns
[
col].PropertyDescriptor == null || columns
[
col].Width <= 0)
496
cellBounds.Width = columns
[
col].Width - bWidth;
504
Brush backBr = BackBrushForDataPaint(ref current, columns
[
col], col);
505
Brush foreBrush = ForeBrushForDataPaint(ref current, columns
[
col], col);
509
columns
[
col],
703
return grid.myGridTable.GridColumnStyles
[
column].PropertyDescriptor.Converter.ConvertToString(grid[row, column]);
712
return grid.myGridTable.GridColumnStyles
[
column].PropertyDescriptor.Converter.ConvertFromString(value);
925
return DataGrid.myGridTable.GridColumnStyles
[
column].HeaderText;
winforms\Managed\System\WinForms\DataGridTable.cs (3)
1584
gridColumns
[
i].SetDataGridInternalInColumn(dG);
1688
gridColumns
[
i].SetDataGridInternalInColumn(null);
1896
cols
[
i].Dispose();