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
foreach (var colum in Result)
{
String Status = colum.Active == true ? "Active" : "Blocked";
htmlTable.Append("");
htmlTable.Append("");
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("");
htmlTable.Append("");
htmlTable.Append("");
htmlTable.Append("");
htmlTable.Append("");
htmlTable.Append("");
htmlTable.Append("");
htmlTable.Append("");
htmlTable.Append("");
htmlTable.Append("");
htmlTable.Append("");
htmlTable.Append("");
htmlTable.Append("");
htmlTable.Append("");
htmlTable.Append("");
htmlTable.Append("");
htmlTable.Append("");
htmlTable.Append("");
htmlTable.Append("");
htmlTable.Append("");
htmlTable.Append(" ");
}
htmlTable.Append("");
htmlTable.Append("");
Thanks
Vishal YelvePosted Oct 3, 2022, 2:53 PM
Hi Ramco,
When we create HTML Tables from the backend code, I have mostly used style='display: none', to hide the table rows/ header.