Welcome Guest Search | Active Topics | Sign In | Register

Programatically setting ButtonColumn ButtonText in EO Grid Options
steve.a
Posted: Tuesday, February 16, 2010 11:59:01 PM
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?
eo_support
Posted: Wednesday, February 17, 2010 9:02:37 AM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.