R
Roel
I need help to format the column and detect any change on the datagrid.
My source code is:
dim da as SqlDataAdapter
dim ds as DataSet
dim dtSource as DataTable
dim conn as SQLConnection = New SQLConnection(......)
da = New SQLDataAdapter ("Select field1, field2, from tablename",conn)
ds = New dataset
da.fill(ds,"tablename")
dtSource = ds.Tables("tablename")
datagrid1.datasource = dtsource
'===== So far everything up to this point is ok.
I try changing the column with for field 1 by using
PreferredColumnWidth but it doesn't work.
I can changed the datagrid but it wont update the table. How can I
detect if there is a new update so I can run datagrid1.update
Appreciate any help.
Thanks
Roel
My source code is:
dim da as SqlDataAdapter
dim ds as DataSet
dim dtSource as DataTable
dim conn as SQLConnection = New SQLConnection(......)
da = New SQLDataAdapter ("Select field1, field2, from tablename",conn)
ds = New dataset
da.fill(ds,"tablename")
dtSource = ds.Tables("tablename")
datagrid1.datasource = dtsource
'===== So far everything up to this point is ok.
I try changing the column with for field 1 by using
PreferredColumnWidth but it doesn't work.
I can changed the datagrid but it wont update the table. How can I
detect if there is a new update so I can run datagrid1.update
Appreciate any help.
Thanks
Roel