Solved

Resize ranges in C#

Posted on 2009-04-08
2
362 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
Comment Utility
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
Comment Utility
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
Introduction                                                 Was the var keyword really only brought out to shorten your syntax? Or have the VB language guys got their way in C#? What type of variable is it? All will be revealed.   Also called…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now