Hi!,
I am creating a Web Part, In that i have to include all the columns name related to specific List Item. Like this.
private SPWeb _SPWeb;
_SPWeb = SPContext.Current.Web;
for (int i = 0; i < _SPWeb.Lists.Count; i++)
cbAllItems.Items.Add(_SPWeb.Lists[i].Title);
from the above code i am getting the Lists, Like "Task, Calander, Announcement, etc....". But now i want to retrieve all Fields containing in the listed items, Like the "Task" list contained field such as Title, Assigned To, Status, Priority, Due Date. All these fields i want to add in a ComboBox (DropDownList).
Plz. help me to solve this problem.
Thanks in advance.