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 get records from a database?

0 Answers  


Explain how to net forms the windows?

0 Answers  


How many types of dialog boxes windows provides?

0 Answers  


What are different authentication types. How do you retrieve user id in case of windows authentication?

5 Answers   Microsoft,


Explain the need of z-order method?

0 Answers  






what is the difference between checkbox and radiobutton?

28 Answers   College School Exams Tests, TCS, Wipro,


How many nuber of controls are there in form?

1 Answers   Morgan Stanley,


What is the need of z-order method?

3 Answers   Accel,


Name the two main categories of .net components.

0 Answers  


how see report periviwe

0 Answers   Wipro,


How many number of events does the Timer controls ?

5 Answers  


Explain how insert record in the database?

0 Answers  


Categories