DataGrid Quandries
-
Hello All, Im actually looking for some general suggestions. I am suppose to edit a datagrid control that has been prepopulated. When I say prepopulated, I mean that we use this third party tool that binds to the datagrid. Here are my problems: 1. Is it possible to get a collection of the column objects at runtime? 2. Can I reorded the columns at runtime? 3. Can I rename the column headings? It looks like all of these things are fairly simple to do, through the DataGrid.TableStyles object. But I really don't have much to work with other than the grid, because of the binding to the third party control. I guess if someone could direct me on how I can get and edit the columns collection of the datagrid I would be greatly appreciative. Thanks, Ryan
-
Hello All, Im actually looking for some general suggestions. I am suppose to edit a datagrid control that has been prepopulated. When I say prepopulated, I mean that we use this third party tool that binds to the datagrid. Here are my problems: 1. Is it possible to get a collection of the column objects at runtime? 2. Can I reorded the columns at runtime? 3. Can I rename the column headings? It looks like all of these things are fairly simple to do, through the DataGrid.TableStyles object. But I really don't have much to work with other than the grid, because of the binding to the third party control. I guess if someone could direct me on how I can get and edit the columns collection of the datagrid I would be greatly appreciative. Thanks, Ryan
for questions see System.Windows.Forms.DataGridTableStyle and DataGridColumnStyle, this two things are grid properties so you don't have to knoe the source (if the source edit TableStyles then you are in trouble) if you don't have the Datatable to which the grid is binded you don't have any direct way to find the columns. From Greece: Dimitris Iliopoulos dimilio@yahoo.com