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
nagasi conan
NA
2
483
how to auto compelete datagridview ?
Mar 15 2020 8:29 AM
i wan to make columns "kode Barang " get value data from database and then columns "nama Barang" auto compelete.
private
void
_auto()
{
string
str;
conn = config.Connetion;
conn.Open();
try
{
str =
"SELECT * FROM db_stok where kode_barang = '"
+ DG_masuk.Rows[3].Cells[3].Value.ToString() +
"'"
;
CMD =
new
MySqlCommand(str, conn);
dr = CMD.ExecuteReader();
while
(dr.Read())
{
string
nama_barang = dr.GetValue(1).ToString();
DG_masuk.Rows[4].Cells[4].Value = nama_barang;
}
}
catch
(Exception ex)
{
MessageBox.Show(
"erorr!!"
+ ex.Message);
}
}
Reply
Answers (
2
)
how to use nested list in c# for student grading system ?
How to post the data into database web api C#