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


Which dialog box allows users to switch to another area of the application?

0 Answers  


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

0 Answers  


What are windows based applications?

0 Answers  


Where to use new keyword other than create instance?

0 Answers  


write a program to create login form

1 Answers  


Which property of textbox cannot be changed at runtime?

2 Answers  


What are ACID properties of a transaction in DBMS (Database Management System)?

2 Answers   Arctern,


tell me something about crystal report in brief?

1 Answers   HCL, Novell,


What are the forms of database?

0 Answers  


What is the need of z-order method?

3 Answers   Accel,


What is the use of runworkasync() methods?

0 Answers  


Categories