Friday, 26 December 2014

Select certain columns from a data table using c#

string[] selectedColumns = new[] { "Columns1"," Columns2"," Columns3" };

DataTable Dt = new DataView(ds.Tables["dt"]).ToTable(false, selectedColumns);

No comments:

Post a Comment

How to highlight selected text in notepad++

  –> To highlight a block of code in Notepad++, please do the following steps step-1  :- Select the required text. step-2  :- Right click...