Iron Speed Technical Forums
Sign up Latest Topics

  Author   Comment  

Posts: 152
Reply with quote  #1 

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

Previous Topic | Next Topic

Quick Navigation:

Easily create a Forum Website with Website Toolbox.

Download Iron Speed Designer

Terms of Service Privacy Statement