سؤال

any one please clarify, how to copy one column data to another column with in the same table using linq.

Thank you, Siva Kumar goru.

هل كانت مفيدة؟

المحلول

You can simply do that without LINQ (which purpose is quering data, not modifying)

foreach(DataRow row in table.Rows)
    row["AnotherColumn"] = row["OneColumn"];
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top