AD
Administrator
Syncfusion Team
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.
VK
Vijay Koul
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
AD
Administrator
Syncfusion Team
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.
VK
Vijay Koul
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.