I've got a dataset. and try to add a new row to it.
I do it on this way:
DataSet objData = new DataSet();
objData.ReadXml(Server.MapPath("xml file"));
DataRow dr = objData.Tables[tabel].NewRow();
dr[0] = id.text;
dr[1] = description.text;
objData.Tables[tablename].Rows.Add(dr);
But row should be a automatically id.
Right now i need to add it by myself.
What is the best way to create a ID for it ?
Normally its just 1, 2 ,3 , 4, 5 ........
So just nummeric numbers.. if i could get a max(id) of the table i could create 1 by myself ?