Click here to Skip to main content
15,900,378 members

Comments by Mcmish (Top 16 by date)

Mcmish 9-Aug-11 21:32pm View    
Hi Losmac,

thnx. I guess i have achieve that feat of having to compare the names, but could you in any way show me sample of the data type comparison method, so I can pick it up from there? The data types includes nvarchar, int, decimal.

Thanx in advance.
Mcmish 8-Aug-11 4:59am View    
Thanx Sergey,

I really appreciates. I had tried similar methods already but its truncating the data cos of foreign keys constraint. And one of the methods will not be ideal as the column names differs at times and that will lead to either mismatch of data or truncating without inserting at all.

Any further assistance on how to solved the foreign keys issues to allow importing the selected table one after another would be highly appreciated.
Mcmish 7-Aug-11 21:27pm View    
Hi Walt,

thanks for your kind interest in helping out. i'm trying to import the data rows that belong to each column in a column by column format since the column names in excel sometimes differs with the column names of sql server table.

So, when i checked d excel table column i will also checked d sql server table corresponding column in order to avoid mismatch of data, so, i want to insert column by column. Any idea???

Thanx
Mcmish 22-Jul-11 13:41pm View    
Thanx Dave, i apprecaites ur replies, i guess i have tried implementing that but still bringing same error.

Sorry to bother you more,I have a listview1 that contained list of column headers with checkedboxes, now i want to return the real data that belong to Listview1.checkedItems to DataGridview1 in the form of rows. kindly assist on the right syntax, pls. thanx

Below is the code that retrieved the column names to the listview:

Me.ListviewBindingSource.DataSource = _dt.Columns
For Each Column In ListviewBindingSource
ListView1.Items.Add(Column.ToString()
Next

What syntax can i use to get data from listview1.checkeditems and return it as DataRow???
Mcmish 12-Jul-11 7:26am View    
Prerak,

Thanx alot for ur understanding, it still bringing error:

Value cannot be null.Parameter name: dataSource

Thanx anyway and sorry for the disturbance