Solved

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

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

Expert Comment

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

Author Comment

by:Ammar Iqbal
ID: 34238781
where should i set thsi?
0
 
LVL 1

Author Comment

by:Ammar Iqbal
ID: 34238786
and how give me the example
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 52

Accepted Solution

by:
Carl Tawn earned 250 total points
ID: 34238827
   <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
ID: 34281909
If mode ="Add"

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

0
 
LVL 19

Expert Comment

by:Amandeep Singh Bhullar
ID: 34886508
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

920 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

12 Experts available now in Live!

Get 1:1 Help Now