Hi All
I Importing a Excel File to a DataGrid .
I want to filter some rows have the code of "91" and "90" for i.e. in the Column of "A" :
so , I added manually , A column in the DataGridView , name "Column1" . now when i imported the excel file to this datagridview , the cell rows that have the value of for e.g. 90 and 91 , insert a value for instance 1 to the rows of Column1, the value of 100 and 101 , insert 2 and so on .
code for Column1 Value of Column A in excelFile
1 -------------> 90
1 -------------> 91
2 -------------> 100
2 -------------> 101
...
How can i do this ...
(excuse me for my bad english !)
thanx for help !
s_mostafa_h 0 Newbie Poster
Recommended Answers
Jump to PostCan you upload a project and sample excel file? I'm having trouble envisioning the task you're describing...
Jump to PostMy arabic is a little rusty so I created a new project.
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.OleDb; using System.IO; namespace daniweb.bank { public partial class Form1 : Form { const string fileName = @"..\..\Test.xls"; …
All 6 Replies
sknake 1,622 Senior Poster Featured Poster
s_mostafa_h 0 Newbie Poster
DdoubleD 315 Posting Shark
sknake 1,622 Senior Poster Featured Poster
s_mostafa_h 0 Newbie Poster
sknake 1,622 Senior Poster Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.