Export notepad to gridviewYKyesubabu k10yAsked Nov 21, 2016, 7:18 PM EST11 answersShareLinkedInXCopy linkSaveSir,i have a requirementthat is data contains rows columns want to export from note pad to gridview selected rows
Export notepad to gridviewYKyesubabu k10yAsked Nov 21, 2016, 7:18 PM EST11 answersShareLinkedInXCopy linkSaveSir,i have a requirementthat is data contains rows columns want to export from note pad to gridview selected rows
Suvendu Shekhar GiriRank #546 · 4.4K reputation10y agoPosted Nov 21, 2016, 7:22 PM EST0so, what have you tried so far?0
YKyesubabu kRank #2,091 · 687 reputation10y agoPosted Nov 21, 2016, 7:29 PM EST0want to Export from notepad to gridview0
Suvendu Shekhar GiriRank #546 · 4.4K reputation10y agoPosted Nov 21, 2016, 7:35 PM EST0 Well, I was asking, if you have tried writing any code which didn't work?So that we'll try to fix your code.0
YKyesubabu kRank #2,091 · 687 reputation10y agoPosted Nov 21, 2016, 8:23 PM EST0No Sir I'am New C# that is why asking0
Suvendu Shekhar GiriRank #546 · 4.4K reputation10y agoPosted Nov 21, 2016, 8:32 PM EST0 First you need to start writing the code. You can take help of tutorials and google. Then if you have any issue we can guide you. We canot write the whole application for you.Please understand that.0
YKyesubabu kRank #2,091 · 687 reputation10y agoPosted Nov 21, 2016, 8:36 PM EST0OKay sirthen i have a problem with time span i needed total hours and minits from this EL_TotalHrs.Text = (EL_ToTime.Value - EL_FromTime.Value).TotalHours.ToString("#"); 0
Suvendu Shekhar GiriRank #546 · 4.4K reputation10y agoPosted Nov 21, 2016, 8:39 PM EST0Please create a new thread for an new question.0
YKyesubabu kRank #2,091 · 687 reputation10y agoPosted Nov 21, 2016, 8:40 PM EST0Actually my requirement is: have a two datetimeickers and one textbox want to dispaly time difference between those two datetime pickers Sir please help me code: EL_TotalHrs.Text = (EL_ToTime.Value - EL_FromTime.Value).TotalHours.ToString("#"); 0
Kranthi Vardhan KolluruRank #3,416 · 423 reputation10y agoPosted Nov 23, 2016, 8:09 PM EST0try this... string [] dataSource= File.ReadAllLines(@"C:\Notepad.txt"); GridView1.DataSource = dataSource; GridView1.DataBind();0
Kranthi Vardhan KolluruRank #3,416 · 423 reputation10y agoPosted Nov 24, 2016, 2:03 AM EST0Hi, Try thisFor example i have 3 columns ID, Name, City in Design Page: In CS file: DataTable tbl = new DataTable(); // Read TextFile from Path string[] lines = System.IO.File.ReadAllLines(@"C:\data.txt"); // Create First Row as Header for Datatable var columns = lines[0].Split(','); for (int col = 0; col < columns.Length; col++) tbl.Columns.Add(new DataColumn(columns[col].ToString())); // Read Data from 2nd Row and import in datatable for (int xx = 1; xx < lines.Length; xx++ ) { var cols = lines[xx].Split(','); DataRow dr = tbl.NewRow(); for (int cIndex = 0; cIndex < 3; cIndex++) { dr[cIndex] = cols[cIndex]; } tbl.Rows.Add(dr); } grvData.DataSource = tbl; grvData.DataBind();0Bikesh SrivastavaRank #108 · 20.3K reputation10y agoPosted Nov 24, 2016, 8:04 AM EST0Hi,Let me know ,you want download grid row in text format.?????? Please explain your complete scenario... 0Join to answer this questionEvery answer you publish earns 20 SHARP.Create free accountSign inKnow the answer?Answer a question in the forums and earn +20 SHARP for every answer.See unanswered questionsForumsTop experts01Arun PottiAnswers in the forums20answers02Tahir AnsariAnswers in the forums5answers03Kamlesh KumarAnswers in the forums5answers04Sam HobbsAnswers in the forums4answers05Željko PerićAnswers in the forums3answers?YouYour name goes here.Every answer: 20 SHARP.JoinFull leaderboard →2026DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Bikesh SrivastavaRank #108 · 20.3K reputation10y agoPosted Nov 24, 2016, 8:04 AM EST0Hi,Let me know ,you want download grid row in text format.?????? Please explain your complete scenario... 0
Suvendu Shekhar GiriRank #546 · 4.4K reputationPosted Nov 21, 2016, 7:22 PM EST
yesubabu kRank #2,091 · 687 reputationPosted Nov 21, 2016, 7:29 PM EST
Suvendu Shekhar GiriRank #546 · 4.4K reputationPosted Nov 21, 2016, 7:35 PM EST
yesubabu kRank #2,091 · 687 reputationPosted Nov 21, 2016, 8:23 PM EST
Suvendu Shekhar GiriRank #546 · 4.4K reputationPosted Nov 21, 2016, 8:32 PM EST
yesubabu kRank #2,091 · 687 reputationPosted Nov 21, 2016, 8:36 PM EST
Suvendu Shekhar GiriRank #546 · 4.4K reputationPosted Nov 21, 2016, 8:39 PM EST
yesubabu kRank #2,091 · 687 reputationPosted Nov 21, 2016, 8:40 PM EST
Kranthi Vardhan KolluruRank #3,416 · 423 reputationPosted Nov 23, 2016, 8:09 PM EST
Kranthi Vardhan KolluruRank #3,416 · 423 reputationPosted Nov 24, 2016, 2:03 AM EST
Bikesh SrivastavaRank #108 · 20.3K reputationPosted Nov 24, 2016, 8:04 AM EST
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts