To remove columns from DataTable in C# and VB.NET you can use the snippet below.
Sample C#
DataTable dataTable; dataTable.Columns.Remove("Columnname"); dataTable.Columns.RemoveAt(index);
Sample VB.NET
Dim dataTable As DataTable dataTable.Columns.Remove("Columnname") dataTable.Columns.RemoveAt(index)
RT @CodeSnippetsNET: How to remove columns from DataTable in C# and #VB .NET http://t.co/rF3RL6nN31 #csharp #dotnet #visualbasic #coding #d…
RT @CodeSnippetsNET: How to remove columns from DataTable in C# and #VB .NET http://t.co/rF3RL6nN31 #csharp #dotnet #visualbasic #coding #d…
RT @CodeSnippetsNET: How to remove columns from DataTable in C# and #VB .NET http://t.co/rF3RL6nN31 #csharp #dotnet #visualbasic #coding #d…
RT @CodeSnippetsNET: How to remove columns from DataTable in C# and #VB .NET http://t.co/rF3RL6nN31 #csharp #dotnet #visualbasic #coding #d…