Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

datagridview doesn't display all entered data

$
0
0

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;

      }

  }






Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>