Hello Everyone,
I have a data table with the following columns and rows as I showed below.
- DataTable dt = new DataTable();
- try
- {
- dt.Columns.Add("f1");
- dt.Columns.Add("f2");
- dt.Columns.Add("f3");
- dt.Rows.Add("ABC", "ATAG", "");
- dt.Rows.Add("abc", "atag", "");
- dt.Rows.Add("abc", "ATAGChild", "");
- }
- catch (Exception)
- {
- throw;
- }
Expected Output:
| f1 | f2 |
| ABC | ATAG |
| abc | ATAGChild |
where f1 and f2 is my column.

Mageshwaran RPosted Nov 15, 2019, 4:46 AM
Amit GuptaPosted Apr 10, 2019, 5:08 AM
Nikunj SatasiyaPosted Apr 10, 2019, 4:41 AM
Piyush PansuriyaPosted Apr 10, 2019, 4:28 AM
Amit GuptaPosted Apr 10, 2019, 3:00 AM