Solved

Resize ranges in C#

Posted on 2009-04-08
2
367 Views
Last Modified: 2012-08-13
I am trying to resize ranges in c#. there is no resize method of the range object in c# as it was in vb.net. Can somebody suggest the efficent way to achieve this.
0
Comment
Question by:busapps
2 Comments
 
LVL 26

Assisted Solution

by:Anurag Thakur
Anurag Thakur earned 500 total points
ID: 24099044
why dont you use a generic list List<T> in this you dont have to worry about resizing becasue you can just keep on adding T type to it by using the Add method
0
 
LVL 1

Accepted Solution

by:
busapps earned 0 total points
ID: 24111776
Well ragi0017, the ranges in the excel sheets have been predefined ( named ranges). I need to populate these ranges with a loop up table which may have not have the same no of records as the no of rows
in the named range. Thus I need to resize them.
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question