Re: Deleting datacolumns



Thanks for Scotts's quick response.

Hi 11Oppidan,

DataTable.Columns.Remove takes the column name or column reference as
argument. To remove column using it's index, you can use
DataTable.Columns.RemoveAt method.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

.



Relevant Pages

  • RE: DbDataReader.Read() result
    ... which mean EOF. ... Kevin Yu ... "This posting is provided "AS IS" with no warranties, ... Prev by Date: ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: F/T HUO Shadow
    ... Kevin and John...Thanks for posting about the machine. ... Prev by Date: ...
    (rec.games.pinball)
  • RE: WinForm - DataGrid - Enter Key
    ... click on a WinForm DataGrid. ... Kevin Yu ... "This posting is provided "AS IS" with no warranties, ... Prev by Date: ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Problem Solution Explorer and forms
    ... Yes I added two panels on it. ... Kevin Yu ... "This posting is provided "AS IS" with no warranties, ... Prev by Date: ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Filling a DataTable with a DataReader
    ... I agree with Miha, that using SqlDataAdapter.Fill will be more efficient. ... Kevin Yu ... "This posting is provided "AS IS" with no warranties, ... Prev by Date: ...
    (microsoft.public.dotnet.framework.adonet)