L
L.Peter
Hi Group,
I have a gridview bound to a sqldatasource, this datasource pulls data out
from select and update procedures with 10 update parameters
the gridview has 15 columns, in edit mode, I want to hide some columns by
setting gridvew1.columns[7-15].visible = false. so users can focus on 2
editable columns only.
The problem is before editing, fields 7-15 have data, after users update
column 5-6, data in fields 7-15 is gone.
The update statement is very straight forward : update table1 set fld1 =
@fld1,....fld15=@fld15 where primarykey =@pk
If I display all 15 columns when in editing mode, update works fine, no data
lost, so I know that problem is on columns.visible = false.
Question: is it by design? how to get around it
TIA
Peter
I have a gridview bound to a sqldatasource, this datasource pulls data out
from select and update procedures with 10 update parameters
the gridview has 15 columns, in edit mode, I want to hide some columns by
setting gridvew1.columns[7-15].visible = false. so users can focus on 2
editable columns only.
The problem is before editing, fields 7-15 have data, after users update
column 5-6, data in fields 7-15 is gone.
The update statement is very straight forward : update table1 set fld1 =
@fld1,....fld15=@fld15 where primarykey =@pk
If I display all 15 columns when in editing mode, update works fine, no data
lost, so I know that problem is on columns.visible = false.
Question: is it by design? how to get around it
TIA
Peter