?
Solved

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

Posted on 2010-11-30
7
Medium Priority
?
424 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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 52

Accepted Solution

by:
Carl Tawn earned 1000 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 1000 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

764 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