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.
I have a grid that I provide QueryCellInfo, QueryColCount and QueryRowCount event handlers to populate with. I also programmitically configure columns at runtime like so:
gridControl1.ColStyles[1].ReadOnly = true;
gridControl1.Cols.Hidden[1] = true;
gridControl1.ColStyles[2].ReadOnly = true;
gridControl1.Cols.Hidden[2] = true;
gridControl1.ColStyles[3].ReadOnly = true;
gridControl1.ColWidths[3] = 100;
gridControl1[0,3].Text = "Instrument";
I need to ensure that columns that I specify as being hidden, stay hidden. I don''t want to allow the user to unhide columns (or hide them for that matter).
Thank you,
Mike
I solved my problem by setting the grid''s AllowSelectoin value = Cell only.
>I have a grid that I provide QueryCellInfo, QueryColCount and QueryRowCount event handlers to populate with. I also programmitically configure columns at runtime like so:
>
>gridControl1.ColStyles[1].ReadOnly = true;
>gridControl1.Cols.Hidden[1] = true;
>gridControl1.ColStyles[2].ReadOnly = true;
>gridControl1.Cols.Hidden[2] = true;
>gridControl1.ColStyles[3].ReadOnly = true;
>gridControl1.ColWidths[3] = 100;
>gridControl1[0,3].Text = "Instrument";
>
>I need to ensure that columns that I specify as being hidden, stay hidden. I don''t want to allow the user to unhide columns (or hide them for that matter).
>
>Thank you,
>Mike
MPMichael PrinceApril 4, 2005 07:32 PM UTC
This did not solve my problem. I still need to be able to prevent the "unhiding" of columns.
Thanks
>I solved my problem by setting the grid''s AllowSelectoin value = Cell only.
>
>>I have a grid that I provide QueryCellInfo, QueryColCount and QueryRowCount event handlers to populate with. I also programmitically configure columns at runtime like so:
>>
>>gridControl1.ColStyles[1].ReadOnly = true;
>>gridControl1.Cols.Hidden[1] = true;
>>gridControl1.ColStyles[2].ReadOnly = true;
>>gridControl1.Cols.Hidden[2] = true;
>>gridControl1.ColStyles[3].ReadOnly = true;
>>gridControl1.ColWidths[3] = 100;
>>gridControl1[0,3].Text = "Instrument";
>>
>>I need to ensure that columns that I specify as being hidden, stay hidden. I don''t want to allow the user to unhide columns (or hide them for that matter).
>>
>>Thank you,
>>Mike
ADAdministrator Syncfusion Team April 4, 2005 08:26 PM UTC
If you do not want your suer to double click and un hide a column, then try handling ResizingColumns.