This project is read-only.

Can't disable SourceGrid.Cells.Button

Oct 12, 2011 at 1:24 AM
Edited Oct 12, 2011 at 2:04 AM


Thanks for this wonderful Lib!

I am trying to let Button to become "disable" (let user can click it!)

I try many way but still can do that. 

Is anybody can tell me how to do it~


=========== my code ===================

SourceGrid.Cells.Views.Button bModel = new SourceGrid.Cells.Views.Button();           

bModel.Background.Style = DevAge.Drawing.ButtonStyle.Disabled; 

grid1[1, 1] = new SourceGrid.Cells.Button("TEST");     

grid1[1, 1].View = bModel;



Thank you very much!!!

Dec 7, 2011 at 7:04 AM

That is a Bug,and u should change the Button View 

PrepareView Funtion
     and Add this
            if (this.Background.Style == DevAge.Drawing.ButtonStyle.Disabled)

Dec 8, 2011 at 1:10 AM


Thanks for your reply! 

It's helpful