DataGridView列幅表示

   Private Sub ShowGridWidth(ByVal dg As DataGridView)
       Dim sMsg As String = ""
       For Each col As DataGridViewColumn In dg.Columns
           If sMsg.Length <> 0 Then
               sMsg += ","
           End If
           sMsg += col.Width.ToString
       Next
       MessageBox.Show(sMsg)
   End Sub

タグ:

+ タグ編集
  • タグ:

このサイトはreCAPTCHAによって保護されており、Googleの プライバシーポリシー利用規約 が適用されます。

最終更新:2007年09月27日 15:56