i have a data table, i have a specific value to be searched, when found i want to perform following Actions:
- copy the values of the total ROW and paste it in specific place
- delete the Particular row from the data table how can i achieve this.
i have a data table, i have a specific value to be searched, when found i want to perform following Actions:
cheers
rowToCopy = (From row In inputDT.AsEnumerable()
Where row("ColumnName").ToString() = specificValue
Select row).FirstOrDefault()
outputDT = (From row In inputDT.AsEnumerable()
Where row("ColumnName").ToString() <> specificValue
Select row).CopyToDataTable()
Regards,
maybe you can define more in detail what is meant by
it depends on your needs / strategies
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.