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"); } }
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"); }