We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Setting gridstyleinfo to a databoundgrid cell

Thread ID:

Created:

Updated:

Platform:

Replies:

34448 Sep 9,2005 04:22 AM Sep 9,2005 05:00 AM Windows Forms 1
loading
Tags: GridControl
Anonymouse
Asked On September 9, 2005 04:22 AM

Hi, I am having trouble setting a single cell in a databoundgrid to readonly. Here is what I do: grdParams is the DataBoundGrid, colConnector is a gridboundColumn which is a combobox. I simply want a cell in this combobox-column to be readonly. private void initForm() { this.grdParams.BeginUpdate(); this.grdParams.DataSource = this.m_Controller.CurrentReport.ParamTable; this.grdParams.EnableAddNew = false; System.Collections.Specialized.StringCollection connectors = new System.Collections.Specialized.StringCollection(); connectors.Add("AND"); connectors.Add("OR"); this.colConnector.StyleInfo.ChoiceList = connectors; GridStyleInfo style = new GridStyleInfo(); style.ReadOnly = true; style.BackColor = Color.Gray; style.Clickable = false; this.grdParams.Model.ChangeCells(GridRangeInfo.Cell(1,5),style); this.grdParams.EndUpdate(); } Please tell me what I am missing, thank you. Anonymouse

Administrator [Syncfusion]
Replied On September 9, 2005 05:00 AM

Please refer the KB link: http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=95 Regards, Jeba.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;