Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
Disable a GridView, but enable a template field column
Dhilipkumar r
7y
371
1
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
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