Home
|
Tutorial
|
Articles
|
Forum
|
Interview Question
|
Code Snippets
|
News
|
Fun Zone
|
Poll
|
Web Links
|
Certification
|
Search
Welcome :
Guest
Sign In
Register
Win Surprise Gifts!!!
Congratulations!!!
Top 5 Contributors of the Month
satyapriyanayak
Narayanan
Thamilselvan J
Anna Harris
Eone James
Home
>>
Forum
>>
VB.Net
>>
Post New Question
Subscribe to Forum
Datagrid Footertemplate button visible false
Posted By:
Catherine
Posted Date:
December 12, 2011
Points:
5
Category :
VB.Net
hi, I would like to visible false my Datagrid Footertemplate button.
i used this coding
CType(DtGridRec.FindControl("btnadd"), Button).Enabled = False
and
Dim btnaddbutton As Button = CType(e.Item.FindControl("btnAdd"), Button)
btnaddbutton.Visible = False
but error coming as "Object reference not set to an instance of an object". pleasedo the needful
Responses
Author:
Faizal
Company URL:
Posted Date: December 15, 2011 Points: 20
Hi Catherine,
It seems like you are not getting the btnAdd reference
check btnaddbutton reference is null or not
If btnaddbutton is Nothing // not sure about vb code
'your logic
in C#
if(btnaddbutton != null)
{
//your logic
}
Post Reply
You must
Sign In
To post reply
Related Questions Related Questions
c# code for datagrid with delete button
c# code for datagrid with delete button in silverlight
Add button to datagrid Dynamially in wpf
how to do multiple binding in datagrid
how can we update database thru datagrid
Latest Forum Questions From The Same Category
Option Explicit vs Option Inter in VB.net
List info of all Mobile devices & Select COM Port for a device
exception while iterating through the records
display checked checkboxes values in to asp.net gridview
Deployment Error
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more
Here
Quick Links For Forum Categories:
ASP.Net
Windows Application
.NET Framework
C#
VB.Net
ADO.Net
Sql Server
SharePoint
OOPs
Silverlight
IIS
JQuery
JavaScript/VBScript
Biztalk
WPF
Patten/Practices
WCF
Others
www.DotNetSpark.com
UnAnswered
All
Hall of Fame
Twitter
Terms of Service
Privacy Policy
Contact Us
Archives
Tell A Friend