Click here to Skip to main content
15,919,336 members
Home / Discussions / C#
   

C#

 
QuestionHow do I... Pin
KORCARI25-Feb-05 22:13
KORCARI25-Feb-05 22:13 
AnswerRe: How do I... Pin
leppie25-Feb-05 23:41
leppie25-Feb-05 23:41 
AnswerRe: How do I... Pin
sreejith ss nair26-Feb-05 1:30
sreejith ss nair26-Feb-05 1:30 
Generalpassing textbox values to an array Pin
la vie25-Feb-05 19:05
la vie25-Feb-05 19:05 
GeneralRe: passing textbox values to an array Pin
Radgar26-Feb-05 0:03
Radgar26-Feb-05 0:03 
GeneralRe: passing textbox values to an array Pin
la vie26-Feb-05 7:11
la vie26-Feb-05 7:11 
GeneralRe: passing textbox values to an array Pin
Radgar26-Feb-05 9:19
Radgar26-Feb-05 9:19 
GeneralRe: passing textbox values to an array Pin
la vie26-Feb-05 9:35
la vie26-Feb-05 9:35 
Thanks Radgar. I was able to load ALL the items to a datagrid. However, I only want to display only items that have values on the quantity boxes.

Here it is, with Merchandise is a class that loads the textboxes and hidden fields to the array.
---------------------------------------------------------------
private void Submit_Click(object sender, System.EventArgs e)
{
ArrayList ListItems = new ArrayList();

ListItems.Add(new Merchandise(txtQty1.Text, hdnDesc1.Value));
ListItems.Add(new Merchandise(txtQty2.Text, hdnDesc2.Value));
ListItems.Add(new Merchandise(txtQty3.Text, hdnDesc3.Value));
ListItems.Add(new Merchandise(txtQty4.Text, hdnDesc4.Value));

DataGrid1.DataSource = ListItems;
DataGrid1.DataBind();
}
---------------------------------------------------------------
I'm thinking of 2 dimentional array as well but still struggling on how to implement it since I'm very new at this. Thanks again Radgar
GeneralRe: passing textbox values to an array Pin
Radgar26-Feb-05 10:42
Radgar26-Feb-05 10:42 
GeneralRe: passing textbox values to an array Pin
la vie26-Feb-05 14:58
la vie26-Feb-05 14:58 
GeneralRe: passing textbox values to an array Pin
Radgar26-Feb-05 16:13
Radgar26-Feb-05 16:13 
QuestionHow to get the value from keyboard? Pin
Johny Ng25-Feb-05 14:38
Johny Ng25-Feb-05 14:38 
AnswerRe: How to get the value from keyboard? Pin
S. Senthil Kumar25-Feb-05 15:07
S. Senthil Kumar25-Feb-05 15:07 
AnswerRe: How to get the value from keyboard? Pin
sardonicus26-Feb-05 12:37
sardonicus26-Feb-05 12:37 
Questionhow to convert a float array (float[]) to a byte array Pin
xuguoqing25-Feb-05 14:00
xuguoqing25-Feb-05 14:00 
AnswerRe: how to convert a float array (float[]) to a byte array Pin
S. Senthil Kumar25-Feb-05 15:02
S. Senthil Kumar25-Feb-05 15:02 
GeneralRetrieve code of method at runtime Pin
hahoyer25-Feb-05 11:53
hahoyer25-Feb-05 11:53 
GeneralRe: Retrieve code of method at runtime Pin
S. Senthil Kumar25-Feb-05 15:07
S. Senthil Kumar25-Feb-05 15:07 
GeneralRe: Retrieve code of method at runtime Pin
sreejith ss nair26-Feb-05 1:27
sreejith ss nair26-Feb-05 1:27 
GeneralRe: Retrieve code of method at runtime Pin
Dave Kreskowiak26-Feb-05 4:14
mveDave Kreskowiak26-Feb-05 4:14 
GeneralRe: Retrieve code of method at runtime Pin
sreejith ss nair26-Feb-05 20:08
sreejith ss nair26-Feb-05 20:08 
GeneralRe: Retrieve code of method at runtime Pin
hahoyer26-Feb-05 15:15
hahoyer26-Feb-05 15:15 
GeneralRe: Retrieve code of method at runtime Pin
S. Senthil Kumar26-Feb-05 19:41
S. Senthil Kumar26-Feb-05 19:41 
GeneralSome kind of file encryption thingy!! Pin
Anthony Mushrow25-Feb-05 11:49
professionalAnthony Mushrow25-Feb-05 11:49 
GeneralRe: Some kind of file encryption thingy!! Pin
Colin Angus Mackay25-Feb-05 11:51
Colin Angus Mackay25-Feb-05 11:51 

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.