private void PopulateGrid() { try { DataTable dt = new DataTable(); dt = VendorBL.PopulateVendorDetList(m_iVenId, m_sSuppType, m_sItemId); grdAsset.DataSource = dt; //VendorId,VendorName grdViewAsset.Columns["VendorId"].Visible = false; grdViewAsset.Columns["Sel"].AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; grdViewAsset.Columns["VendorName"].OptionsColumn.AllowEdit = false; grdViewAsset.Columns["VendorName"].Width = 240; grdViewAsset.Columns["Sel"].Width = 50; grdViewAsset.OptionsView.ColumnAutoWidth = true; grdViewAsset.Appearance.HeaderPanel.Font = new Font(grdViewAsset.Appearance.HeaderPanel.Font, FontStyle.Bold); } catch (Exception ex) { BsfGlobal.CustomException(ex.Message, ex.StackTrace); } }