Home All Groups Group Topic Archive Search About
Author
23 Feb 2005 7:01 PM
jakelake
Hi - 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

Author
23 Feb 2005 7:52 PM
Elton Wang
In ItemCreated.

Elton Wang

>-----Original Message-----
>Hi - 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
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
>
>.
>
Author
23 Feb 2005 8:52 PM
jakelake
Elton -

Thanks for the where part.  Have any idea about the how? (i.e logic
side)

Thanks,

jake
Author
24 Feb 2005 1:27 AM
Elton Wang
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-----
>Elton -
>
>Thanks for the where part.  Have any idea about the how?
(i.e logic
Show quoteHide quote
>side)
>
>Thanks,
>
>jake
>
>.
>
Author
2 Mar 2005 10:22 PM
jakelake
Thanks for the pointers!  That's what I was looking for!