The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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
ADAdministrator Syncfusion Team 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
FHFaraz HaqueMarch 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
>
>
ADAdministrator Syncfusion Team 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.