G
Grzegorz Danowski
Hey everybody!
I have DataSet built basing on SQL string written in textbox by user (me),
then I connect the DataSet to DataGrid in so way:
data.PrepareDs(txtSql.Text);
myDs = data.ActData;
DataTable myDt = myDs.Tables["data"];
DataView myDv = new DataView(myDt);
this.myDataGrid.DataSource = myDv;
User has possibility to update data in the DataGrid. It's fine, but there is
problem when DataSet is read only (for example "Select Count(*) From
Table"). In so situation I would like to block any changes in DataGrid.
How can I test whether DataSet is read only?
Thanks for any help!
Grzegorz
I have DataSet built basing on SQL string written in textbox by user (me),
then I connect the DataSet to DataGrid in so way:
data.PrepareDs(txtSql.Text);
myDs = data.ActData;
DataTable myDt = myDs.Tables["data"];
DataView myDv = new DataView(myDt);
this.myDataGrid.DataSource = myDv;
User has possibility to update data in the DataGrid. It's fine, but there is
problem when DataSet is read only (for example "Select Count(*) From
Table"). In so situation I would like to block any changes in DataGrid.
How can I test whether DataSet is read only?
Thanks for any help!
Grzegorz