|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Condition Edit ActionHi - I am trying to use the EditCommand Column in a datagrid in such a
way as to display the column's edit command ONLY when the user who entered the row is the one viewing the datagrid. I created a function to check for this event. I just can't figure out what the conditional logic for this is and I'm not sure where I'd be wiring at. (ItemBOund?) Thanks for any help in advance!! jake In ItemCreated.
Elton Wang >-----Original Message----- datagrid in such a>Hi - I am trying to use the EditCommand Column in a >way as to display the column's edit command ONLY when the created a functionuser who >entered the row is the one viewing the datagrid. I Show quoteHide quote >to check for this event. I just can't figure out what the conditional >logic for this is and I'm not sure where I'd be wiring at. (ItemBOund?) > >Thanks for any help in advance!! > >jake > >. > Elton -
Thanks for the where part. Have any idea about the how? (i.e logic side) Thanks, jake Hi Jake,
The logic is like following: if itemType = Header/Pager/Footer/Separator then return else editBtn = e.item.cell[btnColIndex].control[0] // and cast to button object data = e.item.cell[dataColIndex].text // or more data if function(data) = true then editBtn.visible = true else editBtn.visible = false fi fi HTH Elton Wang elton_w***@hotmail.com >-----Original Message----- (i.e logic>Elton - > >Thanks for the where part. Have any idea about the how? Show quoteHide quote >side) > >Thanks, > >jake > >. >
DataGrid for Data Entry
Conditionally set dataGrid Rows backcolor Need Help in creating a HyperlinkButton in Datagrid aspx, word question How to properly Format zip code in a datagrid REPOST: MSDN UNIVERSAL NG SUPPORT, WHERE ARE YOU? Call windows apps from web apps dropdownlist in datagrid Custom Paging Question Sorting not working correctly |
|||||||||||||||||||||||