Click here to Skip to main content
15,884,962 members

Comments by Tina Ng (Top 5 by date)

Tina Ng 29-Oct-13 0:47am View    
it still show the "First.my" file path
Tina Ng 14-Jul-13 11:02am View    
for original datagrid the solution work but not for the overrides datagrid
Tina Ng 27-Apr-13 11:37am View    
how can i make the x.Field<string>(gcols.FirstOrDefault() more dynamic ? wha t if i have 10 items on gcols array then i need to add 10 row of (x.Field<string>(gcols.) ??
Tina Ng 17-Dec-12 18:35pm View    
the result show duplicate when i have list like below. the solution provided produce 5 rows of results, but expected is three row. Btw, i have some work around, do anyone know why this query don't work. the conditional part keep always return false. any idea?

var results = (
from e in b
select new
{
Id = e.ID,
Name = e.Name,
Email = e.Email,
IS_Elist = (EList.Contains(e))?true:false,
IS_Olist = (OList.Contains(e)) ? true : false,
}
).ToList();

List<employeeinfo> EList = new List<employeeinfo>();
EList.Add(new EmployeeInfo(1, "a1", "b1"));
EList.Add(new EmployeeInfo(2, "a2", "b2"));

List<employeeinfo> OList = new List<employeeinfo>();
OList.Add(new EmployeeInfo(1, "a1", "b1"));
OList.Add(new EmployeeInfo(2, "a2", "b2"));
OList.Add(new EmployeeInfo(3, "aa2", "bb2"));
Tina Ng 27-Sep-12 22:30pm View    
yup. if is ab* it will join with all the rows with the field starting with ab....