1
Answer

Refreshing gridview with new data

shosho shosho

shosho shosho

9y
316
1
I have a combobox and  a gridview. whenever an item from the combobox is selected , the gridview should be populated with related records.
My question is how can we refresh the datagridview with new  data and remove the old one.
 
Right now  when i click on combobox item A , the gridview displays  item A records.
Then when i select combobox item B, the gridview displays Item A and B records.
 I only want item B records to be displayed
 
Answers (1)
0
dlapkur

dlapkur

NA 3 0 19y
thanks, i took the road you suggested and it allmost works :), ill get it soon though. good luck with your hard drive recovery and thanks again for your time. shay.
0
Mykonine

Mykonine

NA 520 0 19y
To select text, you should use a combination of the "SelectedIndex" and "SelectionLength" properties. I don't have visual studio right now since I'm still on recovering from a hard drive crash so I can't give you much more than that.