Click here to Skip to main content
15,912,309 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
if (e.CommandName == "Edt")
{
   ViewState["SerialOrder"] = strSerail.ToString();
   ViewState["Edit"] = "True";//this is used for data changed in edit mode
                        
   if (e.Item.Cells[6].Text != " " && e.Item.Cells[6].Text != "")
     txtBatch.Text = e.Item.Cells[6].Text;
   else
     txtBatch.Text = "";
   CheckBatchItem();//for check the batch item or not
   if (e.Item.Cells[9].Text != " " && e.Item.Cells[9].Text != "")
     txtQuantity.Text =e.Item.Cells[9].Text;
   else
     txtQuantity.Text = "";
   string strProductiondate = e.Item.Cells[7].Text;
   RadDatePicker StartRadProductionDate = new RadDatePicker();
   StartRadProductionDate = (RadDatePicker)DateCalenderProductDate.FindControl("StartDate");
   if (!string.IsNullOrEmpty(strProductiondate) && strProductiondate != " ")
   {
      StartRadProductionDate.SelectedDate = Convert.ToDateTime(strProductiondate);
   }
   else
   {
      StartRadProductionDate.Clear();
   }
   string strexpirydate =  e.Item.Cells[8].Text;
   RadDatePicker StartRadExpiryDate = new RadDatePicker();
   StartRadExpiryDate= (RadDatePicker)DateCalenderExpiryDate.FindControl("StartDate");
   if (!string.IsNullOrEmpty(strexpirydate) && strexpirydate != " ")
   {
      StartRadExpiryDate.SelectedDate = Convert.ToDateTime(strexpirydate);
   }
   else
   {
      StartRadExpiryDate.Clear();
   }
   ddlItem.SelectedValue = ((Label)e.Item.FindControl("lblfieldId")).Text;                        
   ddlItem.Enabled = false;


But RadCombobox selectedvalue not reflected.
Posted
Updated 20-May-11 20:57pm
v2
Comments
pankajupadhyay29 21-May-11 2:58am    
Edited for formatting and code wrap in pre tag
Sergey Alexandrovich Kryukov 21-May-11 21:44pm    
If you have any question please fill free to ask it.
--SA
Kim Togo 22-May-11 5:48am    
Have you tried to use debugger, set a break point or simple write System. Diagnostics.Debugger.Break(); at the beginning of your code?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900