Rank: Newbie Groups: Member
Joined: 2/16/2010 Posts: 1
|
Hi guys,
I'm converting a DataGrid page to use EO Grid. In my existing DataGrid codebehind I hide Button objects contained in Cells by setting their Visible property to true or false based on the contents of other Cells.
I want to do the same with EO Grid, however your implementation is rather different (e.g. I can't see a way to load a .Net control like a Button into an EO Grid Cell so that I can set its Visible property to true or false).
Can I programatically change the ButtonText property to an empty string on a LinkButton ButtonColumn instead? Do you have any better suggestions?
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
Yes. You can do that with a ButtonColumn. Make sure you set the ButtonColumn's DataFormat (for example, you can set it to "{0}"). When DataFormat is set, the ButtonColumn uses DataFormat to format the cell value, then uses the result as button text. This way changing cell value changes the button text.
Thanks!
|