Gridlistview grayed-out

How can I "gray-out" a gridlistcontrol. I want to disable the whole control - and therefore the disabled control should be "grayed out" to show the user that he can''t do anything with the control at the moment. Is this possible? When I set Enabled to "false" then the control is disabled but not gray like other windows controls. Cheers, Tim

1 Reply

AD Administrator Syncfusion Team October 14, 2005 11:47 AM UTC

Try setting Enabled = false and also handling PrepareViewStyleInfo on the embedded grid to see if that gives you what you want. this.gridListControl1.Enabled = false; this.gridListControl1.Grid.PrepareViewStyleInfo += new GridPrepareViewStyleInfoEventHandler(Grid_PrepareViewStyleInfo);
private void Grid_PrepareViewStyleInfo(object sender, GridPrepareViewStyleInfoEventArgs e)
{
	if(!this.ListBox1.Enabled)
	{
		e.Style.TextColor = SystemColors.GrayText;
	}
}

Loader.
Up arrow icon