When automatic sizing is disabled , you can programmatically set the exact width or height of rows , columns , or headers through the following properties 如果禁用了自动调整大小,则可以用编程的方式通过下面的属性来为行、列或标题设置准确的宽度或高度:
Forces the control to update its display of the cell at the specified location based on its new value , applying any automatic sizing modes currently in effect 强制该控件基于它的新值更新在指定位置显示的单元格,并应用当前有效的任何自动调整大小模式。
To avoid performance penalties , use the automatic sizing modes that calculate sizes based only on the displayed rows rather than analyzing every row in the control 若要避免性能有损失,请使用自动调整大小模式,该模式将仅基于所显示的行而不会分析控件中的每个行来计算大小。
If you maintain cell values in a custom data cache using virtual mode , automatic sizing occurs when the user edits a cell value but does not occur when you alter a cached value outside of a 如果使用虚拟模式在自定义的数据缓存中维护单元格值,则在用户编辑单元格值时发生自动调整大小,但如果在
The details control is set to an automatic sizing mode so that columns will adjust automatically whenever the values change for example , when the user changes the current row in the parent table 详细信息控件设置为自动缩放模式,使得每当值更改时(例如用户更改父表中的当前行时) ,列将自动进行调整。此示例摘自