Click to See Complete Forum and Search --> : C# 2008 dropdownlist problem


kryptonboy22
02-03-2009, 07:53 PM
hi guys!

I'm a newbie in c# and im using .NET 2008 and SQL dbase.
My problem is I want to edit record from a gridview.
When I select a record then it goes to designated textbox and dropdownlist.
The dropdownlist box is also connected with tables.
Everytime I select a record and designate a value to a dropdownlist, the value just added to the dropdown and delete the last selected value of it and it duplicates.
The main problem is how can I designate the text inside a dropdownlist without adding/duplicating.

my code:
dlBusUnit.SelectedItem.Text = gridUsers.SelectedRow.Cells[4].Text;


Thanks guys! hope you could help me with this!