Skip to content

Commit 02d3c08

Browse files
committed
Focus on last added row
1 parent db5c8b5 commit 02d3c08

7 files changed

Lines changed: 10 additions & 1 deletion

File tree

.vs/LFAR/v16/.suo

-512 Bytes
Binary file not shown.
8 KB
Binary file not shown.

LFAR/Form1.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ private void button3_Click(object sender, EventArgs e)
165165
private void button7_Click(object sender, EventArgs e)
166166
{
167167
dataGridView1.Rows.Add(false, "......", "......", "......");
168+
dataGridView1.CurrentCell = dataGridView1.Rows[dataGridView1.RowCount - 1].Cells[0];
168169
}
169170

170171
private void buttonSelectPathOfFile(object sender, EventArgs e)
@@ -203,7 +204,7 @@ private void buttonDoReplaceJob_Click(object sender, EventArgs e)
203204
if (line.Contains(row.Cells[1].Value.ToString()))
204205
replacesCount++;
205206

206-
line = line.Replace(row.Cells[1].Value.ToString(), row.Cells[2].Value.ToString());
207+
line = row.Cells[2].Value.ToString();
207208

208209
text = text + line + Environment.NewLine;
209210

LFAR/obj/Debug/LFAR.csproj.FileListAbsolute.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,11 @@ D:\LinesFindAndReplace\LFAR\obj\Debug\LFAR.Properties.Resources.resources
1313
D:\LinesFindAndReplace\LFAR\obj\Debug\LFAR.csproj.GenerateResource.cache
1414
D:\LinesFindAndReplace\LFAR\obj\Debug\LFAR.exe
1515
D:\LinesFindAndReplace\LFAR\obj\Debug\LFAR.pdb
16+
C:\Users\artis\Downloads\LinesFindAndReplace\LFAR\bin\Debug\LFAR.exe
17+
C:\Users\artis\Downloads\LinesFindAndReplace\LFAR\bin\Debug\LFAR.pdb
18+
C:\Users\artis\Downloads\LinesFindAndReplace\LFAR\obj\Debug\LFAR.csprojAssemblyReference.cache
19+
C:\Users\artis\Downloads\LinesFindAndReplace\LFAR\obj\Debug\LFAR.Form1.resources
20+
C:\Users\artis\Downloads\LinesFindAndReplace\LFAR\obj\Debug\LFAR.Properties.Resources.resources
21+
C:\Users\artis\Downloads\LinesFindAndReplace\LFAR\obj\Debug\LFAR.csproj.GenerateResource.cache
22+
C:\Users\artis\Downloads\LinesFindAndReplace\LFAR\obj\Debug\LFAR.exe
23+
C:\Users\artis\Downloads\LinesFindAndReplace\LFAR\obj\Debug\LFAR.pdb
0 Bytes
Binary file not shown.

LFAR/obj/Debug/LFAR.exe

512 Bytes
Binary file not shown.

LFAR/obj/Debug/LFAR.pdb

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)