Hi,
var maxRow = dt.Select(“ID = MAX(ID)”); var minRow = dt.Select(“ID = MIN(ID)”); Did you refer below topic.