Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
C#
gvVendorDetail.Columns.ColumnByFieldName("InputVat").Visible = false;
            gvVendorDetail.Columns.ColumnByFieldName("MRP").Visible = false;
            this.gvVendorDetail.Columns["VendorCode"].Visible = false;
            this.gvVendorDetail.Columns["MRP"].Visible = false;
            this.gvVendorDetail.Columns["MRP"].Width = 0;
            gvVendorDetail.BeginUpdate();
            gvVendorDetail.Columns["MRP"].Visible = false;
            gvVendorDetail.Columns["MRP"].OptionsColumn.ShowInCustomizationForm = false;
            gvVendorDetail.EndUpdate();
            gvVendorDetail.Columns["MRP"].OptionsColumn.AllowEdit = false;
            gvVendorDetail.Columns["MRP"].OptionsColumn.AllowFocus = false;
            gvVendorDetail.Columns["MRP"].OptionsColumn.ReadOnly = true;


how to hide columns in MRP, vendorcode .
Posted
Updated 17-Dec-13 11:27am
v2
Comments
Maciej Los 17-Dec-13 17:29pm    
Please, provide more details and shortly describe your issue. Does above code not work? Why? What happens?
joginder-banger 17-Dec-13 20:59pm    
why call beckend MRP column name...I think you are select a complete table column like "select * from Devexpress", Change your Sql query like that " Select id,vendercode,venderCOdeName from Devexpress...hit to reply for more information and query.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900