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

Tell a very common use of private constructor?

1 Answers   Arctern,


what are the differences between image and picture controls?

1 Answers  


Which interface is to be implemented to release the unmanaged resources in an object in Dot Net?

1 Answers   Arctern,


tell me something about crystal report in brief?

1 Answers   HCL, Novell,


Is form action required?

0 Answers  






Explain the difference between listbox and combo box?

0 Answers  


What is a database form?

0 Answers  


What is the difference between desktop application and windows application?

0 Answers  


which property of menu cannot be set at run time?

3 Answers  


Which command prompt utility is used to convert a resource file from the text format into the binary format?

0 Answers  


HOW TO NET FORMS THE WINDOWS

1 Answers   DELL,


What are windows based applications examples?

0 Answers  


Categories