datagrid

  • Thread starter Thread starter DLI
  • Start date Start date
D

DLI

I have a datagrid that displays related child rows from a master table.

I have set the datagrids datasource to the relation I set up in the main
dataset

I created a dataview in order to keep all the form's controls in sync

This all works great EXCEPT

I would like to set the datagrid so the user may not delete a record or add
a record, just click a checkbox within the record.

I cannot set the datagrid's readonly property as this would not allow them
to change the checkbox.

I try to set the two related tables defaultview to not allowInserts but that
didn't have any affect.

I also tried setting the Relation's defaultview but that didn't work.

Any suggestions?

TIA
 
I have a datagrid that displays related child rows from a master table.

I have set the datagrids datasource to the relation I set up in the main
dataset

I created a dataview in order to keep all the form's controls in sync

This all works great EXCEPT

I would like to set the datagrid so the user may not delete a record or add
a record, just click a checkbox within the record.

I cannot set the datagrid's readonly property as this would not allow them
to change the checkbox.

I try to set the two related tables defaultview to not allowInserts but that
didn't have any affect.

I also tried setting the Relation's defaultview but that didn't work.

Any suggestions?

TIA

As far as the datagrid itself goes if you change the properties under
Behavior:
AllowUserToAddRows = False
AllowUserToDeleteRows = False

And individually set columns' readonly property to true you can leave
off your one checkbox.

If you're using the dataview directly you can set DV.AllowDelete =
false and DV.AllowNew = False and each of the columns within the
dataview.table.columns collection also have a readonly property that
you can set individually to true/false.
 
Sorry,
I should have stated that I am still using dotnet 1.1

I don't think that functionality is in this version.

Maybe it is time to upgrade.
 
Sorry,
I should have stated that I am still using dotnet 1.1

I don't think that functionality is in this version.

Maybe it is time to upgrade.

The Add/Delete functionality is still on the dataview in 1.1 as far as
the readonly properties on the datatable object contained within the
dataview I don't have 1.1 here to tell you.
 
Back
Top