Click here to Skip to main content
15,900,536 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to assign multiple image in ButtonField using .net with c# Pin
sugunavathy15-Feb-08 1:35
sugunavathy15-Feb-08 1:35 
GeneralOdd Form Display problem Pin
Sam Shiles15-Feb-08 0:52
Sam Shiles15-Feb-08 0:52 
GeneralRe: Odd Form Display problem Pin
Sam Shiles15-Feb-08 1:01
Sam Shiles15-Feb-08 1:01 
GeneralRe: Odd Form Display problem [modified] Pin
sugunavathy16-Feb-08 0:31
sugunavathy16-Feb-08 0:31 
GeneralC# windows Forms location Pin
nilam247715-Feb-08 0:29
nilam247715-Feb-08 0:29 
GeneralRe: C# windows Forms location Pin
phannon8615-Feb-08 0:37
professionalphannon8615-Feb-08 0:37 
QuestionRe: C# windows Forms location Pin
nilam247715-Feb-08 1:30
nilam247715-Feb-08 1:30 
Generalarray Pin
arkiboys15-Feb-08 0:27
arkiboys15-Feb-08 0:27 
Hi,
Below you see the string array which I am populating BUT I would like to populate dynamically becuase the dataset where the data is coming from may have different number of records each time.
Could you please correct the preferred method mentioned below as it seems I can not use .Add to add into the string array.
p.s. I do not want to use an arraylist
Thanks

Present method:

private string[] _securities = null;

_securities = new string[]
{
"XS0166639566 corp cusip","XS0184546371 corp cusip", "XS0307767474 corp cusip"
};

Preferred method:

private string[] _securities = null;

foreach (DataRow row in dsSecuritiesDetails.Tables[0].Rows)
{
//something to add here to add to the string array...
//i.e. _securities.Add(row["field2"].ToString()) + " corp cusip";
}
AnswerRe: array Pin
Martin#15-Feb-08 0:32
Martin#15-Feb-08 0:32 
AnswerResize dynamically and set new string Pin
Mircea Puiu15-Feb-08 0:47
Mircea Puiu15-Feb-08 0:47 
GeneralRe: Resize dynamically and set new string PinPopular
Guffa15-Feb-08 1:13
Guffa15-Feb-08 1:13 
GeneralRe: Resize dynamically and set new string Pin
Mircea Puiu15-Feb-08 1:57
Mircea Puiu15-Feb-08 1:57 
GeneralRe: Resize dynamically and set new string Pin
Guffa15-Feb-08 3:34
Guffa15-Feb-08 3:34 
GeneralRe: Resize dynamically and set new string Pin
Mircea Puiu15-Feb-08 4:02
Mircea Puiu15-Feb-08 4:02 
GeneralRe: Resize dynamically and set new string Pin
J4amieC15-Feb-08 2:06
J4amieC15-Feb-08 2:06 
AnswerHe definitely deserves the 5 :-) Pin
Mircea Puiu15-Feb-08 2:18
Mircea Puiu15-Feb-08 2:18 
GeneralRe: array Pin
Guffa15-Feb-08 0:58
Guffa15-Feb-08 0:58 
GeneralRe: array Pin
Luc Pattyn15-Feb-08 5:45
sitebuilderLuc Pattyn15-Feb-08 5:45 
QuestionVLC Pin
Aparna.B15-Feb-08 0:20
Aparna.B15-Feb-08 0:20 
GeneralRe: VLC Pin
Pete O'Hanlon15-Feb-08 1:18
mvePete O'Hanlon15-Feb-08 1:18 
QuestionSystem.Windows.Forms.Control Vs System.Windows.Controls Pin
kaminem15-Feb-08 0:14
kaminem15-Feb-08 0:14 
GeneralRe: System.Windows.Forms.Control Vs System.Windows.Controls [modified] Pin
Dave Kreskowiak15-Feb-08 4:44
mveDave Kreskowiak15-Feb-08 4:44 
QuestionHow to perform Undo for Form Controls in C#? Pin
nilam247715-Feb-08 0:01
nilam247715-Feb-08 0:01 
GeneralRe: How to perform Undo for Form Controls in C#? Pin
Giorgi Dalakishvili15-Feb-08 0:34
mentorGiorgi Dalakishvili15-Feb-08 0:34 
GeneralForms Issue Pin
Harvey Saayman14-Feb-08 23:43
Harvey Saayman14-Feb-08 23:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.