I want to display the largest value in the ["id"] field in massbox
private void button1_Click(object sender, EventArgs e)
{
string s=null;
foreach (DataRow a in amDataSet.students.Rows)
{
if (a["id"] > s)
{
s = a["id"].ToString();
}
}
MessageBox.Show(s);
}