when i selecting row from gridview and data getting loading into textbox and dropdownlist,when data get load in dropdown list value getting double to display ....
- protected void GVCon_SelectedIndexChanged(object sender, EventArgs e)
- {
- cno.Text = GVCon.SelectedRow.Cells[1].Text;
- txtcontainer.Text = GVCon.SelectedRow.Cells[2].Text;
- txtWeight.Text = GVCon.SelectedRow.Cells[3].Text;
- txtbaletotal.Text = GVCon.SelectedRow.Cells[5].Text;
- //string SesnId = dm.GetData("select Cat_ID from dbo.ConCatagory where Cat_Name='" + GVCon.SelectedRow.Cells[6].Text.Trim() + "'").Rows[0][0].ToString();
- //DDLCAT.SelectedValue = SesnId;
- DDLCAT.SelectedItem.Text = GVCon.SelectedRow.Cells[6].Text;
DDLCat.selecteditem.text = GVcon.selectedRow.cells[6].Text;
here is screen shot... Goodwill getting double display ....

Amit MohantyPosted Jul 26, 2019, 3:43 AM
DDLCAT.Items.FindByText(GVCon.SelectedRow.Cells[6].Text).Selected = true;
Amit KumarPosted Jul 27, 2019, 1:59 AM
Rajanikant HawaldarPosted Jul 26, 2019, 3:35 AM
Rajanikant HawaldarPosted Jul 26, 2019, 3:27 AM
Akhter HUssainPosted Jul 26, 2019, 2:38 AM
Cannot have multiple items selected in a DropDownList.
Amit MohantyPosted Jul 26, 2019, 2:23 AM
Akhter HUssainPosted Jul 26, 2019, 2:10 AM
Akhter HUssainPosted Jul 26, 2019, 2:09 AM
Amit MohantyPosted Jul 26, 2019, 1:56 AM
Salman BegPosted Jul 26, 2019, 1:49 AM
Akhter HUssainPosted Jul 26, 2019, 1:45 AM
Akhter HUssainPosted Jul 26, 2019, 1:43 AM
Salman BegPosted Jul 26, 2019, 1:29 AM
Rajanikant HawaldarPosted Jul 26, 2019, 1:27 AM