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

What is dynamic linking?

0 Answers  


What is form description?

0 Answers  


Which window displays messages for the status of various features provided in the visual studio .net ide?

0 Answers  


Tell a very common use of private constructor?

1 Answers   Arctern,


Clear property is available in which control?

5 Answers  


Explain something about crystal report in brief?

0 Answers  


What is the need of tabindex property is label control?

1 Answers  


HOW TO NET FORMS THE WINDOWS

1 Answers   DELL,


To which namespace does the control class belong?

0 Answers  


How insert recored in the database

1 Answers   Wipro,


what is the control used to call a windows application?

1 Answers  


What are window based applications?

0 Answers  


Categories