private void BindGrid() { _feedBack = OrderProvider.GetFeedBack(DistributorID); if (_feedBack != null && _feedBack.GetFeedbackResult != null && _feedBack.GetFeedbackResult.FeedBackItems != null) { var dt = new DataTable(); dt.Columns.AddRange(new DataColumn[4] { new DataColumn("Id", typeof(string)), new DataColumn("ItemName", typeof(string)), new DataColumn("ItemType", typeof(string)), new DataColumn("ItemTextInfo", typeof(string)) }); foreach (var fb in _feedBack.GetFeedbackResult.FeedBackItems.FeedBackItem) { dt.Rows.Add(fb.Id, fb.ItemName, fb.ItemType); } FeedBackGridView.DataSource = dt; FeedBackGridView.DataBind(); } }