I have created two buttons using User controls
 
" class="buttonnew" />
 
" class="buttonnew" /> 
 
 
Need to display them based upon this condition:
 
protected void dvControl_DataBound(object sender, EventArgs e)
{
foreach (DataRow row in _DataSource.Rows)
{
if (row["MEETING_ENDTIME"].ToString() != "")
{
MeetingStatus = false;
MeetingEnd = true;
}
else
{
MeetingStatus = true;
MeetingEnd = false;
}
}
}

but its binding based upon data table's last row.
I need to bind based upon 
 
if (row["MEETING_ENDTIME"].ToString() != "") .
It's taking last row values and displaying all fields based upon that. But i need to execute the condition for each and every  row

How to fix it?
Thanks in advance!