J
jon L
have developed a webform using a datagrid, pulling data from the database. I
pull the data into an adapter then into a view so that I can have sorting and
paging. I have a few questions about the dg. Prety simple. Trying some
obvious embellishments:
in the update event I grab each value froem the datagridrow using something
like
String tiecode = ((TextBox)e.Item.Cells[3].Controls[0]).Text;
that works except:
1) if a field is read only mode then the above line gives the following error
"Specifeid argument was out of range of valid values " Ok . SO then my
question woulod be how do I read that field , from within my update event ?
2) if I make the field a template fieldwith an edit itemtemplate Ill get the
following error "Specified cast is not valid" As far as I can tell the cell
is a textbox. whats the magicval incantations?
3) Obviously the datagrid is more complex than my feeble mind can grasp.
What I ned is a book that concentrates on the DATAGRID. Any suggestions
Thanks in advance
JONL
3)
pull the data into an adapter then into a view so that I can have sorting and
paging. I have a few questions about the dg. Prety simple. Trying some
obvious embellishments:
in the update event I grab each value froem the datagridrow using something
like
String tiecode = ((TextBox)e.Item.Cells[3].Controls[0]).Text;
that works except:
1) if a field is read only mode then the above line gives the following error
"Specifeid argument was out of range of valid values " Ok . SO then my
question woulod be how do I read that field , from within my update event ?
2) if I make the field a template fieldwith an edit itemtemplate Ill get the
following error "Specified cast is not valid" As far as I can tell the cell
is a textbox. whats the magicval incantations?
3) Obviously the datagrid is more complex than my feeble mind can grasp.
What I ned is a book that concentrates on the DATAGRID. Any suggestions
Thanks in advance
JONL
3)