D David Nov 29, 2003 #2 I only want the datagrid show 4 and only 4 rows. Click to expand... Set the DataSource of the grid to a DataView, and set the AllowNew property of the DataView to false. DataView vw = new DataView(SomeDataSet.SomeTable); vw.AllowNew = false; MyDataGrid.DataSource = vw;
I only want the datagrid show 4 and only 4 rows. Click to expand... Set the DataSource of the grid to a DataView, and set the AllowNew property of the DataView to false. DataView vw = new DataView(SomeDataSet.SomeTable); vw.AllowNew = false; MyDataGrid.DataSource = vw;
C Cyrus Dec 1, 2003 #3 How about if i use dataset? David said: Set the DataSource of the grid to a DataView, and set the AllowNew property of the DataView to false. DataView vw = new DataView(SomeDataSet.SomeTable); vw.AllowNew = false; MyDataGrid.DataSource = vw; Click to expand...
How about if i use dataset? David said: Set the DataSource of the grid to a DataView, and set the AllowNew property of the DataView to false. DataView vw = new DataView(SomeDataSet.SomeTable); vw.AllowNew = false; MyDataGrid.DataSource = vw; Click to expand...
D David Dec 1, 2003 #4 How about if i use dataset? Click to expand... You could probably do the same thing with the DefaultView property of the DataTable.
How about if i use dataset? Click to expand... You could probably do the same thing with the DefaultView property of the DataTable.
C Cyrus Dec 8, 2003 #5 thz David said: How about if i use dataset? Click to expand... You could probably do the same thing with the DefaultView property of the DataTable. Click to expand...
thz David said: How about if i use dataset? Click to expand... You could probably do the same thing with the DefaultView property of the DataTable. Click to expand...