need to hide the columns of Gridview  when detailsview is  in insert mode

Posted on 2010-11-30
Last Modified: 2012-06-27
Question by:Ammar Iqbal
LVL 52

Expert Comment

by:Carl Tawn
Comment Utility
Set the "InsertVisible" attribute of the relevant columns to False.

Author Comment

by:Ammar Iqbal
Comment Utility
where should i set thsi?

Author Comment

by:Ammar Iqbal
Comment Utility
and how give me the example
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

LVL 52

Accepted Solution

Carl Tawn earned 250 total points
Comment Utility
   <asp:GridView ID="MyGrid" runat="server">
                <asp:BoundField ReadOnly="True" HeaderText="ID" 
                  [b]InsertVisible="False"[/b] DataField="ProductID"
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>

Open in new window

LVL 29

Assisted Solution

by:Kumaraswamy R
Kumaraswamy R earned 250 total points
Comment Utility
If mode ="Add"

 do this...
Me.GridViewSample.Columns.Item(10).InsertVisible = False

LVL 19

Expert Comment

by:Amandeep Singh Bhullar
Comment Utility
This question has been classified as abandoned and is being closed as part of the Cleanup Program. See my comment at the end of the question for more details.

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Problem with SqlConnection 5 109
Paging GridView 7 32 mvc entity issue 6 19
Redacting a row in Excel based on a term. 17 31
User art_snob ( encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now