R
Rodney
I am having trouble with getting at the last record in a datatable. I
need to find the id and increment it.
int x = logtbl.Rows.Count;
string x_id = logtbl.Rows[x]["fldid"].ToString();
//here it tells me that x_id has a null value because no row exists at
(x = 8)
int id = Convert.ToInt32(x_id);
MessageBox.Show(x_id);
Is there an easier way to accomplish this.
need to find the id and increment it.
int x = logtbl.Rows.Count;
string x_id = logtbl.Rows[x]["fldid"].ToString();
//here it tells me that x_id has a null value because no row exists at
(x = 8)
int id = Convert.ToInt32(x_id);
MessageBox.Show(x_id);
Is there an easier way to accomplish this.