Hi,
 
how can i correct the following code to create a data row based on selected rows in datagrid that is bound to datatable:
 
  for(int i=0;i<this.dgAllDeliveredNotes.VisibleRowCount;i++)
    { 
    
     if(this.dgAllDeliveredNotes.IsSelected(i) == true)
     {
      
      drSelectedDelivery[i]["CompanyCode"] = this.dsetAllDeliveredNotes.Tables["Table"].Rows[this.dgAllDeliveredNotes.CurrentRowIndex-1]["CompanyCode"].ToString();
    
      
      dtSelectedDelivery.Rows.Add(drSelectedDelivery[i]);
     }
    
    
    }
     

Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to