Solved

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

Posted on 2010-11-30
7
417 Views
Last Modified: 2012-06-27
How?
0
Comment
Question by:Ammar Iqbal
7 Comments
 
LVL 52

Expert Comment

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

Author Comment

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

Author Comment

by:Ammar Iqbal
Comment Utility
and how give me the example
0
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

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

Open in new window

0
 
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

0
 
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.
0

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
Asp.net mvc entity issue 6 19
Redacting a row in Excel based on a term. 17 31
User art_snob (http://www.experts-exchange.com/M_6114203.html) 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 (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. 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