To get DataColumnName in dataTable By the following code:
In C#.net
using System.Data;
//objDataTable is a DataTable object which is having Data
objDataTable.Columns[columnIndex].ColumnName="New ColumnName";
(OR)
objDataTable.Columns["OldColumnName"].ColumnName="New ColumnName";
No comments:
Post a Comment