Solved

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

Posted on 2010-11-30
7
423 Views
Last Modified: 2012-06-27
How?
0
Comment
Question by:Ammar Iqbal
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

705 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