Print Page | Close Window

[SOLVED] GridBuilder 101

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=447
Printed Date: 20-Sep-2025 at 10:16am


Topic: [SOLVED] GridBuilder 101
Posted By: Linguinut
Subject: [SOLVED] GridBuilder 101
Date Posted: 21-Sep-2007 at 12:19pm
How do I edit my custom GridBuilder so that the resulting GridView has a property of IsMultiSelect = true?



Replies:
Posted By: Bill Jensen
Date Posted: 21-Sep-2007 at 12:36pm
Have you tried?


Posted By: Linguinut
Date Posted: 21-Sep-2007 at 12:41pm
I just spent 30+ minutes trying.  Adding GridView.IsMultiSelect = true fails because the GridView is ReadOnly.
 
protected GridView GridView { get; }
 
Maybe that has something to do with it (from DevExGridBuilderBase in IdeaBlade.Cab.DevEx project).  I am just guessing, though.  Hence, the question.


Posted By: Bill Jensen
Date Posted: 21-Sep-2007 at 1:55pm
The problem isn't that the GridView itself is read-only.  The absence of a setter merely means that you can't replace the entire grid view with some other grid view.
 
However, the IsMultiSelect property on XtraGridView does appear to be read only.  I'm not an expert on DeveloperExpress, but there must be some other way to set a DevEx GridView to allow multiple selection.


Posted By: Linguinut
Date Posted: 21-Sep-2007 at 2:25pm

GridView.OptionsSelection.MultiSelect = true;

No error, but it still does not work.  I am setting this in BuildCore of my custom GridBuilder class right after the call to StyleGridToStandard().  Should I be looking elsewhere?
 
[EDIT] Use the designer of the GridView...there is a property available for this.



Print Page | Close Window