DataGridColumnStyle.Width Właściwość

Definicja

Pobiera lub ustawia szerokość kolumny.

public:
 virtual property int Width { int get(); void set(int value); };
public virtual int Width { get; set; }
member this.Width : int with get, set
Public Overridable Property Width As Integer

Wartość właściwości

Szerokość kolumny w pikselach.

Przykłady

Poniższy przykład kodu ustawia szerokość elementu DataGridColumnStyle na nową wartość.


Private Sub SetWidth()
   Dim dgc As DataGridColumnStyle
   dgc = DataGrid1.TableStyles(0).GridColumnStyles("id")
   dgc.Width = 500
End Sub

Dotyczy

Zobacz też