Click here to Skip to main content
15,895,709 members
Home / Discussions / C#
   

C#

 
QuestionWhat is wrong in this code? Pin
andredani7-Sep-07 20:11
andredani7-Sep-07 20:11 
AnswerRe: What is wrong in this code? Pin
Guffa7-Sep-07 21:55
Guffa7-Sep-07 21:55 
GeneralRe: What is wrong in this code? Pin
andredani8-Sep-07 10:00
andredani8-Sep-07 10:00 
AnswerRe: What is wrong in this code? Pin
Guffa8-Sep-07 11:04
Guffa8-Sep-07 11:04 
GeneralRe: What is wrong in this code? [modified] Pin
andredani8-Sep-07 12:45
andredani8-Sep-07 12:45 
GeneralRe: What is wrong in this code? Pin
Insincere Dave8-Sep-07 14:16
Insincere Dave8-Sep-07 14:16 
GeneralRe: What is wrong in this code? Pin
andredani9-Sep-07 1:03
andredani9-Sep-07 1:03 
AnswerRe: What is wrong in this code? Pin
Guffa8-Sep-07 16:46
Guffa8-Sep-07 16:46 
What are you trying to do really? The text of a SubItem is a string, and a string doesn't contain any integers, it only contains characters.

If you use foreach on a string, it will loop through the characters in the string, and casting each character to int means that you get the unicode character codes for the characters in the string. You won't find any characters in the string with the character code 0.

What does the SubItems contain? If it is the string representation of a number, you have to parse the string if you want to get the number. Use the int.Parse method.

---
single minded; short sighted; long gone;

GeneralRe: What is wrong in this code? Pin
andredani9-Sep-07 1:07
andredani9-Sep-07 1:07 
AnswerRe: What is wrong in this code? Pin
Guffa9-Sep-07 8:43
Guffa9-Sep-07 8:43 
AnswerRe: What is wrong in this code? Pin
Skippums10-Sep-07 4:16
Skippums10-Sep-07 4:16 
GeneralRe: What is wrong in this code? Pin
andredani10-Sep-07 4:33
andredani10-Sep-07 4:33 
GeneralRe: What is wrong in this code? Pin
Skippums10-Sep-07 4:43
Skippums10-Sep-07 4:43 
GeneralRe: What is wrong in this code? Pin
andredani10-Sep-07 12:21
andredani10-Sep-07 12:21 
GeneralRe: What is wrong in this code? Pin
Skippums10-Sep-07 12:23
Skippums10-Sep-07 12:23 
GeneralRe: What is wrong in this code? Pin
andredani10-Sep-07 12:27
andredani10-Sep-07 12:27 
GeneralRe: What is wrong in this code? Pin
Skippums10-Sep-07 13:17
Skippums10-Sep-07 13:17 
QuestionHelp regarding datagridview control Pin
anu817-Sep-07 19:57
anu817-Sep-07 19:57 
QuestionApplication + Remoting +Terminal Server Issue. Help Pin
fearless stallion7-Sep-07 18:27
fearless stallion7-Sep-07 18:27 
AnswerRe: Application + Remoting +Terminal Server Issue. Help Pin
Dave Kreskowiak8-Sep-07 3:18
mveDave Kreskowiak8-Sep-07 3:18 
GeneralRe: Application + Remoting +Terminal Server Issue. Help Pin
fearless stallion8-Sep-07 18:05
fearless stallion8-Sep-07 18:05 
Questiontextbox & tab page bugg? Pin
rbuchana7-Sep-07 18:01
rbuchana7-Sep-07 18:01 
AnswerRe: textbox & tab page bugg? Pin
rohitsrivastava7-Sep-07 19:42
rohitsrivastava7-Sep-07 19:42 
GeneralRe: textbox & tab page bugg? Pin
rbuchana8-Sep-07 4:39
rbuchana8-Sep-07 4:39 
Questioncollection editors & component/control designers [modified] Pin
urbane.tiger7-Sep-07 17:31
urbane.tiger7-Sep-07 17:31 

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.