nlampi / SwiftGridView

Swift based data grid view.
MIT License
58 stars 15 forks source link

is it possible to hide columns ? #48

Closed SogoGolf closed 5 years ago

SogoGolf commented 5 years ago

hi, thanks for the great component. is it possible to selectively hide columns via the api ?

nlampi commented 5 years ago

Hi @SogoGolf, right now there's no built in way to hide columns. You could change the visible columns by reloading the data grid and changing the returned column values in the data source. This would not be animated in any way though. Can you provide some context around the intended use case? This would help determine if this is something that could be added as an enhancement. Thanks

SogoGolf commented 5 years ago

Hey, that's cool. Yes that's what I've done just swap out different data sets, which is fine. For now let's leave it as is, I'll reopen the issue if need be in future