Esempio n. 1
0
 private void grid_ColumnPostBackEvent(object sender, ColumnPostBackEventArgs e)
 {
     if (string.IsNullOrEmpty(e.ColumnName) == false)
     {
         executedgridcolumnpostbackevent = true;
     }
     if (!string.IsNullOrEmpty(e.CurrentId))
     {
         Assert.IsNotNull(e.Row);
         Assert.AreEqual(e.Row.PrimaryKeyValues, e.CurrentId);
     }
     else
     {
         Assert.Fail("CurrentId is null for column post back");
     }
 }
Esempio n. 2
0
 private void grid_ColumnPostBackEvent(object sender, ColumnPostBackEventArgs e)
 {
     if (string.IsNullOrEmpty(e.ColumnName) == false)
         executedgridcolumnpostbackevent = true;
     if (!string.IsNullOrEmpty(e.EditIndex))
     {
         Assert.IsNotNull(e.Row);
         Assert.AreEqual(e.Row.PrimaryKeyValues, e.EditIndex);
     }
     else
         Assert.Fail("CurrentId is null for column post back");
 }