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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

hide DatePicker for readonly columns

Thread ID:

Created:

Updated:

Platform:

Replies:

25867 Mar 8,2005 10:51 PM UTC Mar 9,2005 12:19 AM UTC WinForms 3
loading
Tags: GridControl
Faraz Haque
Asked On March 8, 2005 10:51 PM UTC

Hi, I have a bound datagrid with dynamic column selection. This grid should be read only. Although I can get it to be readonly, all the date type columns still show a datepicker. How can I make ALL the columns in my grid type TextBox irrespective of the bound column type? thanks

Administrator [Syncfusion]
Replied On March 8, 2005 11:18 PM UTC

There is a static member of the GridModelDataBinder.AutoInitCellTypes that you can set to control this functionality. So, at the top of your form’s constructor, before the call to InitializeComponent(), , you can add: GridModelDataBinder.AutoInitCellTypes = False

Faraz Haque
Replied On March 8, 2005 11:52 PM UTC

Thanks, that helps. I guess i would need to reset AutoInitCellTypes to true once I am done rendering as other forms may be affected by this static property >There is a static member of the GridModelDataBinder.AutoInitCellTypes that you can set to control this functionality. So, at the top of your form’s constructor, before the call to InitializeComponent(), , you can add: > >GridModelDataBinder.AutoInitCellTypes = False > >

Administrator [Syncfusion]
Replied On March 9, 2005 12:19 AM UTC

Alternatively, you can explicitly set the style.CellType on these columns to "Static". This would avoid having to change the static property.

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

;