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

Explain the difference between listbox and combo box?

508


What is the use of play() playlooping() functions?

624


What is the use of runworkasync() methods?

579


What is an example of form?

567


What is the difference between a document and a form?

535






Which property of the errorprovider control automatically sets to the form to which?

550


What is form based application?

543


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

609


What are the properties of datacontrol?

2033


What are windows based applications?

538


What are the three states set in a checkstate property?

551


i already displaying one datagrid. now i want to make change to particular column header i.e i want to split that column header and it includes one more header.... write a code for that in windows application using C#.net

1493


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

662


What is the difference between desktop application and windows application?

490


What is the extension of the windows installer file?

577