Datagrid cursor question

  • Thread starter Thread starter WStoreyII
  • Start date Start date
W

WStoreyII

i have a datagrid and when i open it the first cell is highlighted. i want
to get rid of it i want it to be a non editable read only grid and the grid
is set to read only to but that does not seem to work how is this done?

WStoreyII
 
ok nevermind on the last question that was not what i meant to ask

my question is in reference to the extra row

for instance i created 10 rows and for some reason there is an eleventh row
that will not change colors like the rest of the form in the style format
that i set forth how do i remove this so that there is only the rows that i
want?

WStoreyII
 
Hi WStory,

I know only this way and it is maybe a little bit strange

use a dataview and than,

dv = New DataView(ds.Tables(0))
dv.AllowNew = False
DataGrid1.DataSource = dv
I hope this helps?

Cor
 
I Tried this and got the following error message

An unhandled exception of type 'System.ArgumentException' occurred in
system.windows.forms.dll

Additional information: Cannot create a child list for field MyTable.

What did i do wrong ?

WStoreyII
 
Back
Top