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

Which property of textbox cannot be changed at runtime?

2 Answers  


how can u split a column header in gridview using C#.net

2 Answers   IBM,


How to show a ContextMenuStrip instead of cthe default ContextMenuStrip,when you rightclick on the non client area of a window's Form or when alt+space keys are pressed

0 Answers  


What is the default property of data control?

2 Answers   Wipro,


Name the property which of menu cannot be set at run time?

0 Answers  






How do you customize the column content inside the datagrid?

2 Answers  


What is the difference between desktop application and windows application?

0 Answers  


what is acomponent in windows applications?

2 Answers  


What is form and its uses?

0 Answers  


How do you display an editable drop-down list?

1 Answers  


Explain the difference between listbox and combo box?

0 Answers  


how barcode create in the report

2 Answers   Wipro,


Categories