Hi,
Is There any way to databind to some property on the Grid which does NOT allow Edit-Mode ?e.g. UltraGrid.AllowEdit ??? or something ... in the Designer of the Grid ( Databinding under Advanced )
I'm currently using the CSLA framework and I've created a property which says "CanEdit" and I'm binding it to "UltraGrid.Enabled" property but the customers are not liking that solution, because then everything is grayed out in the Grid and it's hard to read ...
Kind Regards,EE.
HOWTO:How can I make a grid or a column, row, or cell in the UltraWinGrid disabled or read-only?
Excellent reply ...
I didn't want to loop through the whole columns and set each cell manually
This does the trick:
e.Layout.Override.AllowDelete = Infragistics.Win.DefaultableBoolean.False;e.Layout.AddNewBox.Hidden = true;_btnSave.Visible = false;e.Layout.Override.AllowUpdate = DefaultableBoolean.False;e.Layout.Override.AllowDelete = DefaultableBoolean.False;
BUT it would have been VERY cool if this property was able to databind against ...I'm using a CSLA data object which defines inside itself if it's editable or not,So binding against a PROPERTY would have been niceBut anyway ... this will do the trick, just more code than simply databinding to the propery in the CSLA object databound like this:e.g. UltraGrid.IsUpdateAble = CSLA.CanEdit rgd,EE