Click here to Skip to main content
15,891,905 members
Home / Discussions / C#
   

C#

 
GeneralRe: trying to search a text file for a certain string and display it in a richTextBox Pin
Member 1157009831-Mar-15 6:26
Member 1157009831-Mar-15 6:26 
GeneralRe: trying to search a text file for a certain string and display it in a richTextBox Pin
Member 1157009831-Mar-15 5:01
Member 1157009831-Mar-15 5:01 
QuestionSplit list to two gridview columns in C# winforms Pin
arsale31-Mar-15 3:27
arsale31-Mar-15 3:27 
AnswerRe: Split list to two gridview columns Pin
Eddy Vluggen31-Mar-15 7:31
professionalEddy Vluggen31-Mar-15 7:31 
GeneralRe: Split list to two gridview columns Pin
arsale31-Mar-15 10:46
arsale31-Mar-15 10:46 
GeneralRe: Split list to two gridview columns Pin
Eddy Vluggen31-Mar-15 13:03
professionalEddy Vluggen31-Mar-15 13:03 
GeneralRe: Split list to two gridview columns Pin
arsale31-Mar-15 23:20
arsale31-Mar-15 23:20 
GeneralRe: Split list to two gridview columns Pin
Eddy Vluggen31-Mar-15 23:41
professionalEddy Vluggen31-Mar-15 23:41 
Ah, indeed, I misunderstood.
C#
foreach (var something in resultsList)
There's only one "something" that needs to be splitted over multiple columns?
C#
ip = reply.Address.ToString() + "  ,  Time: " + reply.RoundtripTime.ToString() + "ms   , " + " OK";
The "var" should contain a string. A string.Split[^] should do the trick;
C#
foreach (string s in resultsList)
{
  string[] parts = s.Split(",", StringSplitOptions.RemoveEmptyEntries);
  dataGridView1.Rows.Add(parts[0], parts[1]);
}
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]

GeneralRe: Split list to two gridview columns Pin
arsale31-Mar-15 23:58
arsale31-Mar-15 23:58 
GeneralRe: Split list to two gridview columns Pin
arsale1-Apr-15 0:09
arsale1-Apr-15 0:09 
GeneralRe: Split list to two gridview columns Pin
Eddy Vluggen1-Apr-15 0:24
professionalEddy Vluggen1-Apr-15 0:24 
GeneralRe: Split list to two gridview columns Pin
arsale1-Apr-15 0:28
arsale1-Apr-15 0:28 
QuestionCould not cal the repaint usercontrol?? Pin
Sarita S31-Mar-15 0:05
Sarita S31-Mar-15 0:05 
AnswerRe: Could not cal the repaint usercontrol?? Pin
OriginalGriff31-Mar-15 0:16
mveOriginalGriff31-Mar-15 0:16 
GeneralRe: Could not cal the repaint usercontrol?? Pin
Sarita S31-Mar-15 0:21
Sarita S31-Mar-15 0:21 
GeneralRe: Could not cal the repaint usercontrol?? Pin
OriginalGriff31-Mar-15 0:22
mveOriginalGriff31-Mar-15 0:22 
GeneralRe: Could not cal the repaint usercontrol?? Pin
Sarita S31-Mar-15 0:49
Sarita S31-Mar-15 0:49 
GeneralRe: Could not cal the repaint usercontrol?? Pin
OriginalGriff31-Mar-15 0:55
mveOriginalGriff31-Mar-15 0:55 
QuestionHow to have a Select Query like Sql Server Cross Apply query in MS-Access? Pin
Paramu197330-Mar-15 16:05
Paramu197330-Mar-15 16:05 
AnswerRe: How to have a Select Query like Sql Server Cross Apply query in MS-Access? Pin
Afzaal Ahmad Zeeshan30-Mar-15 16:20
professionalAfzaal Ahmad Zeeshan30-Mar-15 16:20 
Questionhow get array of drawing in inkcanvas in wpf Pin
Member 1111269830-Mar-15 9:24
Member 1111269830-Mar-15 9:24 
QuestionHow to handle SQL Dependency error properly Pin
Tridip Bhattacharjee30-Mar-15 2:35
professionalTridip Bhattacharjee30-Mar-15 2:35 
AnswerRe: How to handle SQL Dependency error properly Pin
Eddy Vluggen30-Mar-15 2:49
professionalEddy Vluggen30-Mar-15 2:49 
GeneralRe: How to handle SQL Dependency error properly Pin
Mycroft Holmes30-Mar-15 12:31
professionalMycroft Holmes30-Mar-15 12:31 
Questionwhen people draw UML Sequence diagrams and when people draw UML Activity diagrams Pin
Tridip Bhattacharjee30-Mar-15 0:34
professionalTridip Bhattacharjee30-Mar-15 0:34 

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.