Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
how to fill textbox with DGV column Content ?
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
soran mohamad
9y
770
1
Reply
hello
how to fill textbox or richtextbox or combobox with datagridview column content
this is my code
static public void refresh(DataGridView datagridview)
{
try
{
if (Connection.State == ConnectionState.Closed)
Connection.Open();
MySqlDataAdapter dataadapter = new MySqlDataAdapter("SELECT * FROM suTable", Connection);
DataTable dt = new DataTable();
dataadapter.Fill(dt);
datagridview.DataSource = dt;
}
catch (MySqlException Exception)
{
MessageBox.Show(Exception.ToString());
}
finally
{
Connection.Close();
}
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
DataGridView Prevent cursor to move to next row when edited
how to display my data grid view control