We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Datagrid Column Display

Thread ID:

Created:

Updated:

Platform:

Replies:

39950 Jan 21,2006 07:09 AM UTC Jan 27,2006 11:46 AM UTC Windows Forms 4
loading
Tags: GridControl
Vijay Koul
Asked On January 21, 2006 07:09 AM UTC

Hi everybody, How can i control which columns i have to display in a datagrid. Thanks in advance

Administrator [Syncfusion]
Replied On January 23, 2006 08:55 AM UTC

Hi Vijay, If you meant GridDataBoundGrid, then you can control the display of the columns in the grid by using Hidden property. Here is the code snippet. this.gridDataBoundGrid1.Model.Cols.Hidden[2] = true; or if you meant Windows Forms DataGrid. Here is the Link to Hide a Column in the DataGrid. dataGrid1.TableStyles("Products").GridColumnStyles.Remove(DataGrid1.TableStyles("Products").GridColumnStyles("QuantityPerUnit")) http://www.dotnet247.com/247reference/a.aspx?u=http://www.kbalertz.com/Feedback_317951.aspx Let us know if you need any further assistance. Regards, Madhan.

Vijay Koul
Replied On January 24, 2006 12:14 PM UTC

Thanks Madhan. The link really worked for me. Now i have another problem I am creating a dataGridTableStyle on a datagrid column click. when i click on the datagrid again for the second time, it gives an error, saying that the datagridtablestyle with this mapping name already exists. i even tried remove property of the same, but of no use. Can u help me plz. Thanks a lot for solving my first problem. Vijay

Administrator [Syncfusion]
Replied On January 25, 2006 10:02 AM UTC

Hi Vijay, You can click on these links, to get details on "Clicking on the column header". Syncfusion Grid''s have easy methods to sort, hide and autosize columns. Custom Sorting and DataGrid Column Hiding by clicking on column header : http://www.c-sharpcorner.com/Code/2002/Aug/DataGridCustomizationP2.asp AutoSizing Columns in the DataGrid : http://odetocode.com/Code/59.aspx If you have any doubts on Syncfusion Grid Products, please let us know. Regards, Madhan.

Vijay Koul
Replied On January 27, 2006 11:46 AM UTC

Hi, Since i found our site very helpful in getting tips about .NET, i try to search answers to all of my problems here only. Now i want to have a checkbox wothin a datagrid. and want to know which checkbox has been checked. All this i want in VB.NET and not ASP.NET How can i do it. Thanks and Regards, Vijay >Hi Vijay, > >You can click on these links, to get details on "Clicking on the column header". Syncfusion Grid''s have easy methods to sort, hide and autosize columns. > >Custom Sorting and DataGrid Column Hiding by clicking on column header : http://www.c-sharpcorner.com/Code/2002/Aug/DataGridCustomizationP2.asp >AutoSizing Columns in the DataGrid : http://odetocode.com/Code/59.aspx > >If you have any doubts on Syncfusion Grid Products, please let us know. > >Regards, >Madhan.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;