How can I check if a DataGridView contains column “x” and column “x” is visible?

前端 未结 5 1443
耶瑟儿~
耶瑟儿~ 2021-01-11 10:13

How can I check if a DataGridView contains column \"x\" and column \"x\" is visible?

All I have so far is below.

if (Dgv.Columns.Contain         


        
5条回答
  •  隐瞒了意图╮
    2021-01-11 10:30

    Loop through the columns, checking the heading (I assume that's what you're looking for) and the Visible property.

提交回复
热议问题