1
Answer

error:cannot convert type 'Tblname' to "System.Data.DataRow'

manjula d

manjula d

11y
1.3k
1
 var objCategory = (from C in objbidportalEntity.bp_category select C).ToList();
                       
                        foreach (DataRow dr in objCategory) // Loop through List with for
                        {
                            ddlCategory.Items.Add(new ListItem(dr[1] + " - " + dr[2].ToString(), dr[0].ToString()));
                         }

i got an error  in foreach
Answers (1)