Hey Guys,
Still somewhat new to asp.net. Have a question I was hoping someone could help with. I have the following on my aspx:
<asp:Table ID="tblAttendance" runat="server" meta:resourcekey="tblAttendanceResource1" />
Here is the code-behind to dynamically build the table:
void createAttendanceTable()
{
tblAttendance.Rows.Clear();
int x=0;
int y=0;
ProgramTableAdapters.READREC_CodeTableAdapter adapter = new ProgramTableAdapters.READREC_CodeTableAdapter();
Program.READREC_CodeDataTable dtCode = new Program.READREC_CodeDataTable();
dtCode = adapter.GetData();
foreach (System.Data.DataRow myDataRow in dtCode.Rows)
{
TableRow myTableRow = new TableRow();
for (x = 0; x <= 1; x++)
{
TableCell myTableCell = new TableCel ...
Go to the complete details ...