i need to create a list, or a datagrid to view in each row the following: a string, a random sequence of numbers that relate to that string in a way, a real number that is the result of using each random number as it appears... i've performed all the above but i displayed it using labels, which is impractical specially that i have to display 500 rows!
now i need may be to create a class with the features above, then create an array of this class containing 500 element, each is an instance of that class.
The problem is; i don't know how to create an array nor a list, i don't know how to bind data to a datagrid, no database is needed.
plz can u help me with this. it is so urgent...
C# datagrid, list, array....Plz! it's urgent?
in System.Collection there is a class called ArrayList that has really easy add/delete methods.
ArrayList al = new ArrayList();
al.Add(object o);
o can be any kind of class.
and retrieving (data type) al[i];
Data type is the actual type of the object you added before hand.
Tuesday, July 14, 2009
I need to drop two of this list: J. Upton, C. Duncan, C. Hart and J. Hamilton? Who should go?
I have an abundance of mediocre outfielders with whom I play "match game" to get to most out of them. Unfortunately, I need to drop one this week and then another by the end of the week. Who should go first and then second? Thanks!
I need to drop two of this list: J. Upton, C. Duncan, C. Hart and J. Hamilton? Who should go?
It kind of depends what categories you need stats in. But really, at this point in the season it is not going to matter who you drop and who you keep for the most part.
I would almost unwaveringly go with Hamilton and Duncan or Upton an Duncan. Duncan is the only player that has a chance to somewhat affect how your team fares in the last 50 or so games as he can hit maybe 5-7 HR. Upton has been a hot pickup though he hasn't really prooved anything yet. Keeping him will not hurt your team.
Hart is useless and Hamilton has cooled off dramatically from his hot start.
The bottom line is no matter what you do, the biggest difference that your decision could possibly make is 5 HR total, maybe 10 RBI, 5 SB, maybe affect your average by .0005 of a point.
But I guess if you are just trying to make the smart decision, I would go with Upton and Duncan. Upton should be fun to follow down the home stretch.
Reply:munkeematt, it does matter who you drop, especially if you're in a head to head format where every week counts.
I would drop Chris Duncan since he is very inconsistent and only plays against righties. Plus, he's been slumping. I would also drop Josh Hamilton, as he's been injured and has cooled off from his hot start.
Hart has also cooled off, but can still give you some homeruns and stolen bases. Upton has also been a nice pickup. He's gotten 3 triples already, and has homerun power.
Reply:drop Duncan first since his play is so irregular. this gives you a chance to see how hamilton does coming back from injury. if he doesn't do anything you have your answer, if he does well i'd probably drop hart. i think upton will be strong for the rest of the year.
Reply:hamilton and upton are the talents. hart may beat out hamilton because of SBs
Reply:Chris Duncan because he is in a big slump, Justin Upton because he only had one good game, and Josh Hamilton because he hasn't done anything in forever. Then pick up Raul Ibanez because he is on fire with 5 HR and about 15 RBI's in the past week.
I need to drop two of this list: J. Upton, C. Duncan, C. Hart and J. Hamilton? Who should go?
It kind of depends what categories you need stats in. But really, at this point in the season it is not going to matter who you drop and who you keep for the most part.
I would almost unwaveringly go with Hamilton and Duncan or Upton an Duncan. Duncan is the only player that has a chance to somewhat affect how your team fares in the last 50 or so games as he can hit maybe 5-7 HR. Upton has been a hot pickup though he hasn't really prooved anything yet. Keeping him will not hurt your team.
Hart is useless and Hamilton has cooled off dramatically from his hot start.
The bottom line is no matter what you do, the biggest difference that your decision could possibly make is 5 HR total, maybe 10 RBI, 5 SB, maybe affect your average by .0005 of a point.
But I guess if you are just trying to make the smart decision, I would go with Upton and Duncan. Upton should be fun to follow down the home stretch.
Reply:munkeematt, it does matter who you drop, especially if you're in a head to head format where every week counts.
I would drop Chris Duncan since he is very inconsistent and only plays against righties. Plus, he's been slumping. I would also drop Josh Hamilton, as he's been injured and has cooled off from his hot start.
Hart has also cooled off, but can still give you some homeruns and stolen bases. Upton has also been a nice pickup. He's gotten 3 triples already, and has homerun power.
Reply:drop Duncan first since his play is so irregular. this gives you a chance to see how hamilton does coming back from injury. if he doesn't do anything you have your answer, if he does well i'd probably drop hart. i think upton will be strong for the rest of the year.
Reply:hamilton and upton are the talents. hart may beat out hamilton because of SBs
Reply:Chris Duncan because he is in a big slump, Justin Upton because he only had one good game, and Josh Hamilton because he hasn't done anything in forever. Then pick up Raul Ibanez because he is on fire with 5 HR and about 15 RBI's in the past week.
List the factors that contribute to rape. List the stages that rape victims go through. How many people c?
i guess shock, shame, become angry, depression, low self esteem and in SOME cases they can become promiscuous.
List the factors that contribute to rape. List the stages that rape victims go through. How many people c?
I suggest you go to some of the support groups for rape survivors and hear first hand about this henious crime.
Reply:hmmm i guess its like IDK its hard
phlox
List the factors that contribute to rape. List the stages that rape victims go through. How many people c?
I suggest you go to some of the support groups for rape survivors and hear first hand about this henious crime.
Reply:hmmm i guess its like IDK its hard
phlox
How can you change your hard drive's letter to C?
My computer lists drive E: as the hard drive and C: is listed as a zip drive. How can I change that?
How can you change your hard drive's letter to C?
Hmmmm when it boots up, go into the BIOS and search about until you find the boot order, and be sure that the hard drive is first. I'm not entirely sure what's wrong, but I would check to see if you've got the cables hooked up to the mother board backwards. See if the primary cable out of the MOB is hooked up to the zip drive- that would explain it.
Reply:I agree with Guitargadfly,
You can also try this....
To refresh drive letter, file system, and volume information
Open Computer Management (Local).
In the console tree, click Disk Management.
Where?
Computer Management (Local)
Storage
Disk Management
On the Action menu, click Refresh.
Notes
To open Computer Management, click Start, and then click Control Panel. Double-click Administrative Tools, and then double-click Computer Management.
You must be logged on as an administrator or a member of the Administrators group in order to complete this procedure. If your computer is connected to a network, network policy settings might also prevent you from completing this procedure.
When you click the Refresh command, Disk Management refreshes drive letter, file system, volume, and removable media information, and also checks to see if unreadable volumes are now readable. However, it does not scan hardware. To update hardware information, click Rescan Disks instead.
Related Topics
Reply:he is right, but changing the drive letter can cause programs to not work properly, if the drive you wish to change is the primary windows drive you will have to reload.
Reply:Ok do this
In Windows XP
Left Click Start%26gt;Control Panel%26gt;Performance and Maintanence%26gt;Administrative Tools%26gt;Computer Management.
In the window that opens double click%26gt;Storage%26gt;Disk Management.
In the window that opens
Right Click on your hard drive and youll see an option "Change drive letters and paths"
How can you change your hard drive's letter to C?
Hmmmm when it boots up, go into the BIOS and search about until you find the boot order, and be sure that the hard drive is first. I'm not entirely sure what's wrong, but I would check to see if you've got the cables hooked up to the mother board backwards. See if the primary cable out of the MOB is hooked up to the zip drive- that would explain it.
Reply:I agree with Guitargadfly,
You can also try this....
To refresh drive letter, file system, and volume information
Open Computer Management (Local).
In the console tree, click Disk Management.
Where?
Computer Management (Local)
Storage
Disk Management
On the Action menu, click Refresh.
Notes
To open Computer Management, click Start, and then click Control Panel. Double-click Administrative Tools, and then double-click Computer Management.
You must be logged on as an administrator or a member of the Administrators group in order to complete this procedure. If your computer is connected to a network, network policy settings might also prevent you from completing this procedure.
When you click the Refresh command, Disk Management refreshes drive letter, file system, volume, and removable media information, and also checks to see if unreadable volumes are now readable. However, it does not scan hardware. To update hardware information, click Rescan Disks instead.
Related Topics
Reply:he is right, but changing the drive letter can cause programs to not work properly, if the drive you wish to change is the primary windows drive you will have to reload.
Reply:Ok do this
In Windows XP
Left Click Start%26gt;Control Panel%26gt;Performance and Maintanence%26gt;Administrative Tools%26gt;Computer Management.
In the window that opens double click%26gt;Storage%26gt;Disk Management.
In the window that opens
Right Click on your hard drive and youll see an option "Change drive letters and paths"
Could someone please explain how to bubble sort a linked list on c++???
An explanation (instead of code).
the canonical example of a linked list:
head -%26gt; node1 -%26gt; node2 -%26gt; node3 -%26gt; NULL
Starting at the first node of the list, look at the current node and the next node. If the two nodes are not in the correct order, swap them. Continue this until you reach the end. The end node will have NULL as the next pointer.
If you swapped any items at all, go back to the beginning of the list and do it all again.
Swapping can involve two different methods. If the stored item is small, such as a single integer, it's easier to just swap the integer value;s.
temp = node1.value;
node1.value = node2.value;
node2.value = temp;
If the item is larger, it's faster to change the pointers instead of the values.
In the original example, if we want to swap node1 and node2, we need to change the head pointer, node1.next and node2.next.
before swap
head == %26amp;node1;
node1.next = %26amp;node2;
node2.next = %26amp;node3;
I'll let you figure out the actual swap code
after swap
head == %26amp;node2;
node1.next = %26amp;node3;
node2.next = %26amp;node1;
Now the list looks like this:
head -%26gt; node2 -%26gt; node1 -%26gt; node3 -%26gt; NULL
the canonical example of a linked list:
head -%26gt; node1 -%26gt; node2 -%26gt; node3 -%26gt; NULL
Starting at the first node of the list, look at the current node and the next node. If the two nodes are not in the correct order, swap them. Continue this until you reach the end. The end node will have NULL as the next pointer.
If you swapped any items at all, go back to the beginning of the list and do it all again.
Swapping can involve two different methods. If the stored item is small, such as a single integer, it's easier to just swap the integer value;s.
temp = node1.value;
node1.value = node2.value;
node2.value = temp;
If the item is larger, it's faster to change the pointers instead of the values.
In the original example, if we want to swap node1 and node2, we need to change the head pointer, node1.next and node2.next.
before swap
head == %26amp;node1;
node1.next = %26amp;node2;
node2.next = %26amp;node3;
I'll let you figure out the actual swap code
after swap
head == %26amp;node2;
node1.next = %26amp;node3;
node2.next = %26amp;node1;
Now the list looks like this:
head -%26gt; node2 -%26gt; node1 -%26gt; node3 -%26gt; NULL
Where can I find a list of OLD STUDENTS OF GOVT. F.C. COLLEGE LAHORE?
The list can be in the form of "ALUMNI" or a book of old students, or a "site" (F.C. College site is not opening.)
Where can I find a list of OLD STUDENTS OF GOVT. F.C. COLLEGE LAHORE?
if u need that go to the college office and ask for records
Where can I find a list of OLD STUDENTS OF GOVT. F.C. COLLEGE LAHORE?
if u need that go to the college office and ask for records
Special b.t.c cutoff list of kusinagar plz tell ?
u.p. special btc cutoff list
Special b.t.c cutoff list of kusinagar plz tell ?
I thought this was the Special Ed section? do you even know what special ed means?
Reply:stupid foreigners Report It
verbena
Special b.t.c cutoff list of kusinagar plz tell ?
I thought this was the Special Ed section? do you even know what special ed means?
Reply:stupid foreigners Report It
verbena
Subscribe to:
Posts (Atom)