Re: Combobox issue

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Antonio,

>
> Dim dtNewTable As DataTable = ds.Tables(0)
> dtNewTable.TableName = "Menu"
> ds.Tables.Add(dtNewTable)
>
Beside all what you are doing, will this in my opinion never go. You tell
that dtNewTable is an old table with a new name.

If you want a new table than you have to do.

Dim DtNewTable as DataTable = ds.Table(0).Copy

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdatadatatableclasscopytopic.asp

I hope this helps,

Cor


.