![]() Extra content is clipped (with an ellipsis added to indicate the missing content). ![]() The column widths are not adjusted automatically. Your options are shown in Table 15-4.ĭisplayedCells DisplayedCellsExceptHeader Fill The simplest approach is to set a resizing behavior that applies to all columns using the AutoSizeColumnsMode property. Setting an Automatic Resize Mode for the Entire Grid The following sections explore your options. Your first decision is whether you want to control sizing for the entire control or fine tune individual columns. As a result, the initial appearance of the bound grid in Figure 15-1 is less than perfect, with the ModelName and Description columns too small for the data they contain.įortunately, you can use some powerful automatic resizing functionality that's built into the DataGridView. One problem is that the DataGridView gives a default standard width to all columns regardless of their content. But with a few quick refinements, you can greatly improve it. ![]() The default appearance vof the DataGridView is a modest improvement over the DataGrid.
0 Comments
Leave a Reply. |