hello, please your help.
I have a data table, if this data table has more than 100 rows, it should be divided into 2 and the 2 parts should be in two different variables.
hello, please your help.
I have a data table, if this data table has more than 100 rows, it should be divided into 2 and the 2 parts should be in two different variables.
hey
check this example to get the last rows
use this for first rows
dt1 = Dt.AsEnumerable().Take(80).CopyToDataTable()
regards!
Claro, una combinación de ambas.
Disculpa y si requiriera dividirla en 3?
supongo que podrias hacer un dt.rowCount de la DT y divir ese valor en 3, y asi le pasas cada valor que necesites al Skip y al Take.
lo que no entiendo es para divifirlas?
Usar esta instrucción conservara los encabezados?.
es parte del proceso para eso se dividide, entonces por archivo no puede tener mas 100 lineas.