Force Bound DataGridView to Generate Columns and Rows

前端 未结 1 390
慢半拍i
慢半拍i 2021-01-21 03:42

I am programmatically creating a DataGridView object and then binding it to a DataTable using the grid\'s DataSource property.

After creating the grid, I am adding it to

相关标签:
1条回答
  • 2021-01-21 04:03

    The quick answer is no, the DataGridView has to exist in the form's control collection.

    Your note about setting the control to false, then formatting it, then setting it to visible is probably the "cleanest" hack available to you.

    0 讨论(0)
提交回复
热议问题