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
Goran Bibic
480
2.9k
200.8k
Selection changed textbox value C#
Mar 24 2019 10:47 AM
If datagrid no have rows in my textbox have values from last selected values...
Need help IF DATAGRID NO HAVE VALUES TEXTBOX EMPTY
Thank you
private
void
testDataGridView_SelectionChanged(
object
sender, EventArgs e)
{
if
(testDataGridView.SelectedRows.Count > 0)
{
string
test = testDataGridView.SelectedRows[0].Cells[
"columnname"
].Value.ToString();
testTextBox.Text = test;
}
}
Reply
Answers (
1
)
How to compare two DataGridView Values
C# Distructor Issue