vb.net - There's any way to know if a DataGridViewCell is visible? -


i'm making csv file datagridview following code in vb.net

'process data cells each dr datagridviewrow in dgx.rows  'dgx datagridview         each dc datagridviewcell in dr.cells         csv += dc.value & chr(9) 'tab separated     next     csv += environment.newline.tostring() next 

the datagriview visible gui have invisible columns , need make csv file without columns, without removing gui datagridview because need them posterior processing.

solved!

for each dr datagridviewrow in dgx.rows      if dgx.columns(dc.columnindex).visible          csv += dc.value & chr(9) 'tab separated      end if     csv += environment.newline.tostring() next 

Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -