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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Setting gridstyleinfo to a databoundgrid cell

Thread ID:

Created:

Updated:

Platform:

Replies:

34448 Sep 9,2005 08:22 AM UTC Sep 9,2005 09:00 AM UTC WinForms 1
loading
Tags: GridControl
Anonymouse
Asked On September 9, 2005 08:22 AM UTC

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 09:00 AM UTC

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.

Warning Icon 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.Close Icon

;