I have a rad grid and when the user select edit or insert it opens the EditForm using a Template. Depending on who the user is there are two items that I would like to either show or hide. Here is a sample of the code.
As you can see I have the table row visible set to false. How can I change this when the user hits the edit or insert button on the grid, based on the user who is loged in?
<
rad:RadGrid
ID
=
"gridClients"
runat
=
"server"
AllowPaging
=
"True"
AllowSorting
=
"True"
AutoGenerateColumns
=
"False"
DataSourceID
=
"ObjectDataSource1"
EnableAJAX
=
"True"
EnableAJAXLoadingTemplate
=
"True"
GridLines
=
"None"
LoadingTemplateTransparency
=
"50"
ShowStatusBar
=
"True"
Skin
=
"Windows"
Width
=
"98%"
AllowFilteringByColumn
=
"True"
PageSize
=
"25"
DataBound
=
"gridClients_ItemDataBound"
OnUpdateCommand
=
"gridClients_UpdateCommand"
OnInsertCommand
=
"gridClients_InsertCommand"
OnDeleteCommand
=
"gridClients_DeleteCommand"
>
...
<
EditFormSettings
EditFormType
=
"Template"
UserControlName
=
"ClientGrid"
>
<
EditColumn
UniqueName
=
"EditCommandColumn"
></
EditColumn
>
<
FormTemplate
>
<
table
cellpadding
=
"2"
cellspacing
=
"0"
border
=
"0"
width
=
"100%"
>
<
tr
id
=
"SpecialInstructRow"
runat
=
"server"
visible
=
"false"
>
<
td
>
<
label
for
=
"SpecialInstuct"
>Billing Notes:</
label
>
<
asp:TextBox
ID
=
"SpecialInstructTextBox"
runat
=
"server"
Text='<%# Bind("SpecialInstructions") %>' TextMode="MultiLine" ></
asp:TextBox
>
</
td
>
</
tr
>
...
</
table
>
As you can see I have the table row visible set to false. How can I change this when the user hits the edit or insert button on the grid, based on the user who is loged in?