How do you hide the columns in datagrid?

Answer Posted / s

DataGridTableStyle Dts1=new DataGridTableStyle();
datagrid1.TableStyles.Add(Dts1);

Dts1.GridColumnStyles[0].Width=0;
Dts1.GridColumnStyles[1].Width=390;
Dts1.GridColumnStyles[1].HeaderText="Title";

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Name the class to be inherited for creating a custom control.

566


Is form action required?

513


i already displaying one datagrid. now i want to make change to particular column header i.e i want to split that column header and it includes one more header.... write a code for that in windows application using C#.net

1491


How to split a column header in gridview using c#.net?

713


What is form based application?

543






Explain something about crystal report in brief?

555


Explain how insert record in the database?

616


What is the extension of a compiled help project file?

574


Suppose I am implementing one windows form. I am inserting some values into ms access. In that table 5 columns there. But I want to insert three columns only. When I am clicking another button then other two values also insert into that table?

541


Where is system windows forms dll?

541


What is the difference between a document and a form?

533


What is window form application?

499


which property is used to change to some value to access a identity column in datacontrols?

1671


What is a windows forms application?

517


What are the forms of database?

527