Hi, i'm trying to enter data into data grid view from FaxOutgoingJobs object collection , when i do this i cant see the data of two first rows i just see data of the last row in dgv ,when using break point i can see the data of two first rows assigning to data grid view rows but rows didn't fill with data ,,, what is the problem here ??
here sample of my code :
int row_index = 0; for( int i = 1 ; i <= ObjFaxoutgoingJob.Count ; i++) { if (ObjFaxoutgoingJob[i].SubmissionTime.Day == 25) { dgv_jobs.Rows[row_index].Cells["job_id"].Value = ObjFaxoutgoingJob[i].Id.ToString(); dgv_jobs.Rows[row_index].Cells["doc_name"].Value = ObjFaxoutgoingJob[i].DocumentName.ToString(); dgv_jobs.Rows[row_index].Cells["reciever_name"].Value =ObjFaxoutgoingJob[i].Recipient.Name.ToString(); dgv_jobs.Rows.add(); row_index = dgv_jobs.NewRowIndex; } }