Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
Disable a GridView, but enable a template field column
Dhilipkumar r
Mar 11 2017 2:14 PM
347
Reply
Hi,
Is it possible to disable a gridview and enable a templatefield inside a column?
grdEmployee.Enabled=
false
;
and which contains a template field of linkbuttons
<
asp:TemplateField
HeaderText
=
"Branch"
>
<
EditItemTemplate
>
<
asp:TextBox
ID
=
"txtBranch"
runat
=
"server"
Text
=
'<% Bind("Branch") %>'
/>
</
EditItemTemplate
>
<
ItemTemplate
>
<
asp:LinkButton
ID
=
"lnkBranch"
runat
=
"server"
Text
=
'<% Bind("Branch") %>'
OnClientClick
=
"openPopupWindow()"
/>
</ItemTemplate>
</asp:TemplateField>
But whenever I disable the gridview, the linkbutton disappears and the column appears as plain text. I want to disable the gridview but not the linkbutton template field column
Thanks in advance
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
I'm getting this error while running in asp.net
I have website configured in IIS 7.5 i want to edit some of