Posted on: 5/8/2015 6:00:20 PM | Views : 685

i have a grid column called code where needs to check for null or empty value and if we double click on the row it populates the data on right side of the page where we can edit and save it
right side code has dropdown where it poulates data from database(there i am checking for null value and assigning default value as "pro_tac".
Here is the code..
var tCodes = new List<ListItem>(); foreach (var itm in proTCodes) { taxCodes.Add(new ListItem() { Text = itm.ProTCode.ToLower().Equals("null") ? "pro_tac" : itm.ProTCode, Value = itm.ProTCodeID.ToString() }); } editProTCode.DataSource = tCodes; editProTCode.DataBind(); editProTCode.Items.Insert(0, new ListItem("Please Select...", String.Empty));
This is fine but when i double click on the row in the grid where the code column is empty or null it has to populate "pro_tac" ...

Go to the complete details ...