Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Newbie question
Message
 
 
À
06/07/2010 10:23:15
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Versions des environnements
Environment:
C# 3.0
Divers
Thread ID:
01471507
Message ID:
01471519
Vues:
45
>>>>>>What about assignment of array's value?
>>>>>
>>>>>Same principle (shrug):
TextBox t = (TextBox)this.Controls.Find(s, true)[0];
>>>>>t.Text = stack[column,row].ToString();
>>>>>t.ForeColor = textboxforecolor;
>>>>
>>>>Do we need this code in a loop? E.g. column is a variable (0-6) ?
>>>
>>>I think Bill said there would be 52 possible values. But he's only dealing with one - why a loop ?
>>
>>The code above is probably part of the loop through all gridview's columns.
>
>What makes you think that ?

Makes sense to me - we have 52 textboxes and want to assign values from them to 52 columns. But since it was not part of the code shown, you're right, your code answers the question as it was asked.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform