TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Suhail Rakib
NA
119
1.4k
Get only the last result
Jan 20 2021 11:06 AM
Hey. Why do I only get the last result with this code?
foreach
(DataGridViewRow dr
in
dgvOperation.Rows)
{
var query = @
"GetFullText"
;
SqlCommand cmd =
new
SqlCommand(query, con);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.AddWithValue(
"@Text"
, dr.Cells[2].Value.ToString());
cmd.Parameters.AddWithValue(
"@Klientnavn"
, txtKlientNavn.Text);
DataTable dt =
new
DataTable();
var sda =
new
SqlDataAdapter();
sda.SelectCommand = cmd;
sda.Fill(dt);
dgvOperation1.DataSource = dt;
}
Reply
Answers (
9
)
How to show selected image in asp. Net without postback.
Convert Date Time and Decimal to user specific format