Hi
In below code if i have not to display in the list i have to create Headers with display:none option . Is there any other simple way of code for getting value of non-displaying fields in table
C#
foreach (var colum in Result)
{
String Status = colum.Active == true ? "Active" : "Blocked";
htmlTable.Append("");
htmlTable.Append("" + colum.PMSCode + "");
htmlTable.Append("" + colum.YearMaster.FinancialYear + "");
htmlTable.Append("" + Convert.ToDateTime(colum.KRAStartDate).ToString("dd-MM-yyyy") + "");
htmlTable.Append("" + Convert.ToDateTime(colum.Q1StartDate).ToString("dd-MM-yyyy") + "");
htmlTable.Append("" + Convert.ToDateTime(colum.Q2StartDate).ToString("dd-MM-yyyy") + "");
htmlTable.Append("" + Convert.ToDateTime(colum.Q3StartDate).ToString("dd-MM-yyyy") + "");
htmlTable.Append("" + Convert.ToDateTime(colum.Q4StartDate).ToString("dd-MM-yyyy") + "");
htmlTable.Append("" + Status + "");
htmlTable.Append("");
htmlTable.Append("" + colum.KRAEndDate + "");
htmlTable.Append("" + colum.Q1EndDate + "");
htmlTable.Append("" + colum.Q2EndDate + "");
htmlTable.Append("" + colum.Q3EndDate + "");
htmlTable.Append("" + colum.Q4EndDate + "");
htmlTable.Append("" + colum.KRAStatus + "");
htmlTable.Append("" + colum.Q1Status + "");
htmlTable.Append("" + colum.Q2Status + "");
htmlTable.Append("" + colum.Q3Status + "");
htmlTable.Append("" + colum.Q4Status + "");
htmlTable.Append("" + colum.KRAFinalStatus + "");
htmlTable.Append("" + colum.Q1FinalStatus + "");
htmlTable.Append("" + colum.Q2FinalStatus + "");
htmlTable.Append("" + colum.Q3FinalStatus + "");
htmlTable.Append("" + colum.Q4FinalStatus + "");
htmlTable.Append("" + colum.EmailNotification + "");
htmlTable.Append("" + colum.PMSStatus + "");
htmlTable.Append("" + colum.FileUploadMandatory + "");
htmlTable.Append("" + colum.SkipPeriodValidations + "");
htmlTable.Append("" + colum.InitiateNextQuarterlyReview + "");
htmlTable.Append("");
}
htmlTable.Append("");
htmlTable.Append("");Thanks

Vishal YelveRank #178 · 13.6K reputationPosted Oct 3, 2022, 10:53 AM EDT
Hi Ramco,
When we create HTML Tables from the backend code, I have mostly used style='display: none', to hide the table rows/ header.