Iron Speed Technical Forums
Sign up Latest Topics
 
 
 


Reply
  Author   Comment  
krishna

Registered:
Posts: 152
Reply with quote  #1 
Hi

I have a status table. It has status start and end dates.
The user wants an edit option for the rows in this table.
But I want to implement a check that-
current row start date < previous row start date or previous row end date- then alert
current row end date  < previous row start date - then alert

public void Button1_Click(object sender, System.EventArgs e)
{
 
        statusTableControl myTable = (statusTableControl)(this.FindControlRecursively("statusTableControl"));
        if (myTable != null)
        {
            foreach (statusTableControlRow recordCtl in myTable.GetSelectedRecordControls())
            {
                if (recordCtl.statusRecordRowSelection.Checked == true)
                {
                    // do the date check here..
 
                }
            }
        }
 
}



How do reference the row index for current and previous rows?
Also if it is first row then I want to do some more checks.

Please advise.

thanks and regards
Krishna


Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.

Download Iron Speed Designer

Terms of Service Privacy Statement