Quantcast
Channel: ClosedXML - The easy way to OpenXML
Viewing all articles
Browse latest Browse all 1877

New Post: Disable AutoFilter in Table

$
0
0
st21chris wrote:
Option 1 did get rid of the autofilter, but it also removed the theme, which I would like to keep. Option 2 didn't do anything. Immediately after inserting the table, I evaluated the ws.AutoFilterRange property and it was already null.   So, I started poking around a little and found the solution that worked for me: var table = sheet.Cell(1, 1).InsertTable(dataTable); table.ShowAutoFilter = false;   Next time, I'll stop being lazy and look around a bit more before posting a question. :)  
Thanks for this, it worked great for me, I've been hours trying to get rid of the AutoFilter

Viewing all articles
Browse latest Browse all 1877

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>