Click here to Skip to main content
16,009,238 members
Home / Discussions / WPF
   

WPF

 
QuestionSilverlight 5 Pin
Mycroft Holmes22-May-12 22:29
professionalMycroft Holmes22-May-12 22:29 
AnswerRe: Silverlight 5 Pin
Abhinav S23-May-12 3:42
Abhinav S23-May-12 3:42 
GeneralRe: Silverlight 5 Pin
Mycroft Holmes23-May-12 13:05
professionalMycroft Holmes23-May-12 13:05 
QuestionTreeview & Listview Pin
rams221-May-12 7:07
rams221-May-12 7:07 
AnswerRe: Treeview & Listview Pin
Kevin Marois21-May-12 7:58
professionalKevin Marois21-May-12 7:58 
AnswerRe: Treeview & Listview Pin
Mycroft Holmes21-May-12 12:47
professionalMycroft Holmes21-May-12 12:47 
GeneralRe: Treeview & Listview Pin
rams221-May-12 20:26
rams221-May-12 20:26 
GeneralRe: Treeview & Listview Pin
Fabio Franco22-May-12 11:07
professionalFabio Franco22-May-12 11:07 
AnswerRe: Treeview & Listview Pin
Abhinav S21-May-12 19:56
Abhinav S21-May-12 19:56 
AnswerRe: Treeview & Listview Pin
JohnLBevan21-May-12 22:11
professionalJohnLBevan21-May-12 22:11 
AnswerRe: Treeview & Listview Pin
Dimitrios Kalemis22-May-12 8:32
professionalDimitrios Kalemis22-May-12 8:32 
GeneralRe: Treeview & Listview Pin
Fabio Franco22-May-12 11:01
professionalFabio Franco22-May-12 11:01 
GeneralRe: Treeview & Listview Pin
Mycroft Holmes22-May-12 14:10
professionalMycroft Holmes22-May-12 14:10 
GeneralRe: Treeview & Listview Pin
Fabio Franco23-May-12 7:32
professionalFabio Franco23-May-12 7:32 
GeneralRe: Treeview & Listview Pin
Pete O'Hanlon23-May-12 22:14
mvePete O'Hanlon23-May-12 22:14 
GeneralRe: Treeview & Listview Pin
Fabio Franco24-May-12 2:17
professionalFabio Franco24-May-12 2:17 
GeneralRe: Treeview & Listview Pin
Mycroft Holmes24-May-12 3:10
professionalMycroft Holmes24-May-12 3:10 
Questionbuilding error in wp7 Pin
heba abu ghaleih22 21-May-12 6:40
heba abu ghaleih22 21-May-12 6:40 
AnswerRe: building error in wp7 Pin
kiLLe_51221-May-12 23:11
kiLLe_51221-May-12 23:11 
GeneralRe: building error in wp7 Pin
heba abu ghaleih22 22-May-12 23:37
heba abu ghaleih22 22-May-12 23:37 
GeneralRe: building error in wp7 Pin
kiLLe_51222-May-12 23:40
kiLLe_51222-May-12 23:40 
GeneralRe: building error in wp7 Pin
heba abu ghaleih22 23-May-12 7:43
heba abu ghaleih22 23-May-12 7:43 
GeneralRe: building error in wp7 Pin
kiLLe_51223-May-12 8:35
kiLLe_51223-May-12 8:35 
Questionparser csv Pin
MemberDotNetting21-May-12 4:36
MemberDotNetting21-May-12 4:36 
Hi, i tried this code to parse CSV file and save data in a wpf data grid, the code is correct but i can't store values on datagrid

this is a class wich contain the code:

public class CsvParser
{
public List<string[]> ReadAndParseData(string path, char separator)
{
var parseData = new List<string[]>();
using (var sr = new StreamReader(path))
{
string line;
while ((line = sr.ReadLine()) != null)
{
string[] row = line.Split(separator);
parseData.Add(row);
}
}
return parseData;
}
}
}
the is the code behind; assigned to event click on boutton

List<string[]> parseData = csv.ReadAndParseData(datasource, ';');

foreach (string[] row in parseData)
{
MessageBox.Show(""+row.GetValue(0));// i get the correct value
dgvreceipient.Items.Add(row.....);// but i get a empty datagrid
}
AnswerRe: parser csv Pin
Pete O'Hanlon21-May-12 4:53
mvePete O'Hanlon21-May-12 4:53 

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.