I have 5000 records in my datatable. I will do some processing on each row.I want to show the progess in progress bar.
How will I go for it?
I have writen some code. But it is not doing exactly I wanted..Please check it once...
progressBar1.Minimum = 0;
progressBar1.Maximum = ds.Tables.Rows.Count;
progressBar1.Step = 1;
for (int count = 0; count < ds.Tables.Rows.Count; count++)
DataRow dr = Dt.NewRow();
for (int ColCount = 0; ColCount < 60; ColCount++)
if (ds.Tables.Rows[count][ColCount].ToString().Length > 2)
dr[ColCount] = string.Empty;
Any reply is appreciated.