How do you hide the columns in datagrid?

Answers were Sorted based on User's Feedback



How do you hide the columns in datagrid? ..

Answer / 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

How do you hide the columns in datagrid? ..

Answer / surya

In the html source of datagrid, add "visible=true" to the
item template of corresponding row.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Dot Net WindowsForms Interview Questions

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

0 Answers  


Explain the difference between listbox and combo box?

0 Answers  


Is windows an application software?

0 Answers  


What is boxing and how it is done internally?

4 Answers   Microsoft,


How many navigational features are provided by visual studio.net ide?

0 Answers  






What are the forms of graphics?

0 Answers  


Explain how save rerecord in the database?

0 Answers  


which property of menu cannot be set at run time?

3 Answers  


what is the difference between checkbox and radiobutton?

28 Answers   College School Exams Tests, TCS, Wipro,


Name the template that is used to create a user-defined component.

0 Answers  


what is acomponent in windows applications?

2 Answers  


How to find the current record position in data control?

1 Answers   TechSolution,


Categories