Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2012/5.0 > C# 2012/5.0 General Discussion
C# 2012/5.0 General Discussion Discussions about the C# 2012 language and tool not related to any specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2012/5.0 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old October 5th, 2014, 03:36 PM
Registered User
Join Date: Oct 2014
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Filter data from datagridview uploaded from csv file

Hi! I need help can u provide me a code how to filter data from datagridview?
I wrote this code for importing CSV to datagridview.

var parsedData = new List<string[]>();
var sr = new StreamReader(@textBox8.Text);
string line;
while ((line = sr.ReadLine()) != null)
string[] row = line.Split(',');

dataGridView1.ColumnCount = 3;
for (int i = 0; i < 3; i++)
var sb = new StringBuilder(parsedData[0][i]);

dataGridView1.Columns[i].Name = sb.ToString();

foreach (string[] row in parsedData)

Similar Threads
Thread Thread Starter Forum Replies Last Post
Importing data from a CSV file? kr33 SQL Server 2000 26 January 3rd, 2007 02:38 AM
Importing data from CSV file g_vamsi_krish ASP.NET 1.0 and 1.1 Basics 2 May 23rd, 2006 01:29 AM
Transfering data from csv file to data base g_vamsi_krish ASP.NET 1.0 and 1.1 Professional 2 May 16th, 2006 11:58 PM
Writing data to a CSV file vc1 Classic ASP Components 1 September 28th, 2005 08:26 AM
Writing data to a CSV file vc1 VBScript 1 March 10th, 2005 04:32 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.