Edit Command button on alternate items

M

Miguel Ramirez

Hello All,

Can I hide the edit command button on alternable items?
or in other case on items with certain value on a column?

Best regards,

Miguel.
 
T

Torrent Nicolas

Hi,

You just have to use the DataGrid ItemCreated event to change the visibility
of your control :
if ( e.Item.ItemType == ListItemType.AlternatingItem) {

// Change visibility

}

By
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,141
Messages
2,570,817
Members
47,367
Latest member
mahdiharooniir

Latest Threads

Top