473,511 Members | 15,581 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Remove datagrid col at runtime?

I'm missing something. I'm trying to remove a column in a gridlist using the
following syntax:

grdList.Columns.Remove(grdList.Columns(0))

All this does is screw up the formatting in the table. Column is still
there.

Chip
Nov 18 '05 #1
1 1759
Figured it out. It works if you remove the column BEFORE you bind the data.
"Chip" <ch**@intradata.com> wrote in message
news:O2**************@TK2MSFTNGP09.phx.gbl...
I'm missing something. I'm trying to remove a column in a gridlist using the following syntax:

grdList.Columns.Remove(grdList.Columns(0))

All this does is screw up the formatting in the table. Column is still
there.

Chip

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2448
by: Rameshika | last post by:
Hi All How can I select a particular row in a datagrid.Where when the user double clicks the data in that row should appear in the corresponding text boxes in runtime And how can the user...
0
908
by: Tim Cowan | last post by:
Hi I was wondering if there is a way to remove the DataGrid width at runtime. I want it to size itself dynamically at runtime according to the data in it. It is the equivalent of setting the...
5
2260
by: AC | last post by:
Any reason i'm having trouble with: DataGrid1.Columns(7).ItemStyle.HorizontalAlign = HorizontalAlign.Right I'm trying to directly set the column alignment of a datagrid created at runtime.. ...
2
5843
by: Steve Pierce | last post by:
I am having some issues with a runtime dropdownlist in a datagrid. The issue is that I cannot get ViewState to fill the selected index of a runtime dropdown properly on postback. I do not want to...
4
1564
by: gh | last post by:
I create the columns for the asp.net datagrid at runtime and populates them. I have a template column for checkboxs I created at runtime as well. The user selects the product they want by...
0
1086
by: sathyan8294 | last post by:
i am using vb.net 2003.i am doing my project in vb.net windows application. how do i remove selected row permanently from sql database through datagrid in vb.net windows form during runtime. for...
1
2058
navanova
by: navanova | last post by:
I am doing my project in vb.net windows application and SQL Server 2000. how do i remove selected row permanently from sql database through datagrid in vb.net windows form during runtime. for...
4
4852
by: madho | last post by:
I am doing my project in vb.net windows application and SQL Server 2000. how do i remove selected row permanently from sql database through datagrid in vb.net windows form during runtime. for...
1
1322
by: madho | last post by:
I am doing my project in vb.net windows application and SQL Server 2000. how do i remove selected row permanently from sql database through datagrid in vb.net windows form during runtime. for...
0
7144
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7356
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7085
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7512
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5671
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5069
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3214
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
785
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
449
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.