Skip to Content
0

how to fill a datable with another datable? c# sap business one

Jan 31 at 12:57 PM

18

avatar image
Former Member

hello,

I have a datatable with these elements:

enter image description here

enter image description here

enter image description here

I would like to deletes elements, I can only 1, but to delete more than one record I need to fill another datatable with pval.row or could be the code too, and when the end user push the update button could delete all these records.

How can I do that? I could delete them only visual right now. int nRow =

 int nRow = Grid0.Rows.SelectedRows.Item(0, SAPbouiCOM.BoOrderType.ot_RowOrder);        

  coddElmin= Convert.ToInt32(Grid0.DataTable.GetValue("CODE", nRow));
//to delete visual the line in the grid
 Grid0.DataTable.Rows.Remove(Grid0.GetDataTableRowIndex(nRow));
                                   
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers