How do you hide the columns in datagrid?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is window form application?

587


Explain how to add resources during runtime?

700


What is the use of runworkasync() methods?

669


What is dynamic linking?

727


What is formdata?

647






Are windows forms still used?

657


How save rerecord in the database?

685


which property is used to change to some value to access a identity column in datacontrols?

1763


how see report periviwe

2414


What is the advantage of a form?

655


Which property value of the helpnavigator property will display the index for a specified topic?

694


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

686


How insert record in the database?

670


What is the difference between a document and a form?

644


Name the property which is used to lock a textbox to enter data?

611