i have go through many article in google,but its not up to my point,
i want in my gridview following requirements ,
s.no pointsName Employee IsOK
1 XXX(TEXTBOX) EMP1(DDL) TRUE(CHECKBOX)
2 YYY(TEXTBOX) EMP1(DDL) TRUE(CHECKBOX
3 zzz(TEXTBOX) EMP1(DDL) TRUE(CHECKBOX
IN my database table Dutypoint
Id Name
1 xxx
2 yyy
3 zzz
IN my database table Employee
Id Name
1 xxx
2 yyy
3 zzz
i want to create rows in gridview base on point,and display name of point in the text box.what i so far tried is as follow
DataTable dt = new DataTable();
DataRow dr = null;
var SecPoint = _service.GetAllDutyPoint().ToList();
foreach (var point in SecPoint)
{
for (int I = 1; I <= point.NoOfMinEmployes; I++)
{
private void FillDropDownList(DropDownList ddl)
{
var emp1 = _service.GetEmployeeDutyByEmployee_Id(MyUser.Employee_Id).LastOrDefault();
var EmpList = _service.GetAllEmployeeDuty().OrderByDescending(x => x.EndDate).GroupBy(x => x.Employee_Id).Select(x => x.First()).ToList();
var empList = EmpList.Where(X=>X.ToSector_Id== emp1.ToSector_Id).ToList();
ddl.Bind(empList, "EmployeeIdName", "Employee_Id");
}
}
its just return one row