Hi,
Few days back i was struggling a lot about to get the Display Name of list columns because client was not ready to move a single bit on his decision to show only column's display name not the internal name.
I spent near about the whole day to find out the solution of this problem. Thank god finally i got the lines of code that helped me.
I do not want to anybody else will struggle for the same.
I am putting code here:-
Get Display name of list columns
foreach(DataColumn column in table.Columns)
{
column.ColumnName = list.Fields.GetFieldByInternalName(column.ColumnName).Title;
}
It can save your time for sure.
Kuldeep Kadyan.
Tuesday, July 14, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment