Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
6
Reply
Insert Textbox value to a specific row and column?
Black Diamond
Aug 4 2017 5:01 AM
244
Reply
Good day,
I have a problem inserting a data or a text from textbox in a specific column and a specific row in datagridview without database using add button.
I have a code her but the problem of this code it insert string text in all the column selected.
I want only one row in a specific column should be inserted...please help..thank
for (int i = 0; i < DatagridVoucher.Rows.Count; i++)
{
DataGridViewRow row = DatagridVoucher.Rows[i];
row.Cells[3].Value = this.txtVat.Text;
}
I'm attaching file for more details thank you .
Attachment:
Insert_text_in_a_datagrid.zip
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
6
)
Next Recommended Forum
sending notification failed with payload in c#
How to show database values in pie chart using ASP.NET