Hey guys! I'm having my form with a Insert Button, a ListView and others. ListView shows all data from a table.
Now I want my ListView automatically reload after I press Insert Button. How can?
p/s: I try "Application.Restart();" but I don't want that way
I need your help, it would be appreciated!
Loading

Kiran Kumar TalikotiRank #814 · 2.8K reputationPosted Oct 24, 2013, 12:49 AM EDT
Prasenjit DeyRank #6,279 · 271 reputationPosted Oct 24, 2013, 12:49 AM EDT
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Oct 24, 2013, 12:52 AM EDT
if any doubt share your code
Lucky Lam13 reputationPosted Oct 26, 2013, 4:21 AM EDT
private void bttInsert_Click(object sender, EventArgs e)
{
string MSV, HoTen, MaLop;
MSV = textBoxMaSV.Text;
HoTen = textBoxHoTen.Text;
MaLop = comboBoxMaLop.Text;
new DBConnect().Insert(MSV, HoTen, MaLop);
//Application.Restart();
}
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Oct 26, 2013, 4:38 AM EDT
{
string MSV, HoTen, MaLop;
MSV = textBoxMaSV.Text;
HoTen = textBoxHoTen.Text;
MaLop = comboBoxMaLop.Text;
new DBConnect().Insert(MSV, HoTen, MaLop);
//Code to bind the listview
}
Lucky Lam13 reputationPosted Oct 27, 2013, 4:07 AM EDT
Jyoti Khanchandani4 reputationPosted Oct 27, 2013, 4:25 PM EDT
Lucky Lam13 reputationPosted Oct 27, 2013, 5:28 PM EDT
Lucky Lam13 reputationPosted Oct 27, 2013, 5:57 PM EDT
Anyway thanks so much for caring my question. I wish you guys the best