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,
Is there way you can make the grid appear like a button does or a frame or many other windows controls appear when the enabled property is set to false. If you make a new project and put a grid and a button on the form. Set both to enabled=false and run. The button looks not clickable but the grid looks the same whether its true or false. Is there anyway to make it look like the button?
ADAdministrator Syncfusion Team February 3, 2005 09:28 PM UTC
Hi Pat,
you could handle the PrepareViewStyleInfo event and when grid.Enabled is set to false return a different look for cells, e.g. set style.Enabled = false, style.TextColor = SystemColors.GreyText etc.
Stefan
ADAdministrator Syncfusion Team February 4, 2005 02:44 PM UTC
Ok that works but when i try to change it back when a certain button is clicked it doesnt seem to work. Can i just change it back in a button click event and if so what color was the color i changed it from? The original color
ADAdministrator Syncfusion Team February 4, 2005 03:02 PM UTC
After you change the .Enabled property on the grid try also calling .Refresh(). Then the grid should repaint correct (since your code in PrepareViewStyleInfo criteria should not get hit any more)
Stefan
>Ok that works but when i try to change it back when a certain button is clicked it doesnt seem to work. Can i just change it back in a button click event and if so what color was the color i changed it from? The original color