Dear All
I have a listbox control in which data comes from table States . Table has only one column . Data is stored like this
PB
HR
CHD
DEL
Now in the form in the listbox control it will display all these 4 records . i want in addition to these Listbox control should display "New" at the end in ListBox , when user click on New it should open a form of New States creation and allow to add a new State , and then update the list box. How is it possible using C#
Thanks
Loading
anand sengarPosted Jun 8, 2011, 4:46 AM
ListBox1.Items.Add("New");
Now handdle your code in SelectedIndexChanged event.
if(ListBox1.SelectedItem.Text=="New")
{
//code
}
after that again bind your listbox.
Jagjit SainiPosted Jun 6, 2011, 8:59 AM
Suthish NairPosted Jun 6, 2011, 5:43 AM