I am creating an Excel spreadsheet in C#. I like to have the header (first) row pinned in place when the user scrolls the rows. How can I do this in C# (or VB.NET)?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I know that this not a fully detailed answer, but it should help you in the right direction. When I previously did a lot of Perl and later Ruby automation of Excel and wanted to know how to achieve this and that I usually recorded a macro and inspected its code to see how VBA interacted with the objects. I also did so for your task and this is what I got:
I will leave it to somebody else to translate into C#, but it should be a walk in the park.