.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month

Home >> Interview Question >> ASP.Net >> Post New Question Subscribe to Interview Questions

How do you hide the columns of a gridview?

Posted By :nishithraj     Posted Date :November 30, 2009    Points :10   Category :ASP.Net 
By setting a column's Visible property of a column as false or by the style display:none property.

You can also find related Interview Question to How do you hide the columns of a gridview?  below: 

How to hide column/columns of silverlight/WPF datagrid?

If you want to hide column or columns in datagrid in code behind then do the following steps:

dgSample.Columns[0].Visibility = Visibility.Hidden;

Note: Rename dgSample to your datagrid name.

What is Method used to bind the data into gridview ?

DataBind() Method used to bind the data into gridview (More...)

How to clear all rows of the GridView?

make DataSource as null.

GridView1.DataSource = null; (More...)

How you will Hide Column(s) in the Windows Forms DataGridView Control?

Set the DataGridViewColumn.Visible property to false.

dataGridView1.Columns("CustomerID").Visible = False

dataGridView1.Columns["CustomerID"].Visible = False; (More...)

How many Columns per INSERT statement is allowed

4096 Columns allowed in per Insert SQL (More...)

What is the limitation of Rows and Columns in Sql Server?

A Row in Sql Server can have the maximum capacity of 8080bytes.
A Column in Sql Server can have the maximum capacity of 1789bytes. (More...)

Name the types of Columns that are available in WPF DataGrid?

1) DataGridTextColumn
2) DataGridCheckBoxColumn
3) DataGridComboBoxColumn
4) DataGridHyperlinkColumn
5) DataGridTemplateColumn

What are Sparse Columns?

A sparse column is another tool used to reduce the amount of physical storage used in a database. They are the ordinary columns that have an optimized storage for null values. Sparse columns reduce the space requirements for null values at the cost of more overhead to retrieve nonnull values. (More...)

How To Create GridView With ScrollBars?




Difference between Datalist and Gridview

Gridview support's selection, editing , sorting and paging whereas Datalist can't support sorting and paging but support selection and


What is the maximum number of columns/tables in a view?

A view can have a maximum of 1,024 columns

Max number of Tables can be used in Select is 256

More can be found on link below

http://msdn.microsoft.com/en-us/library/ms143432.aspx (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend