I want to insert update delete use Radgridview API.
I use automatic
[img]http://i1143.photobucket.com/albums/n637/new_adm/rad.png[/img]
And it can load my data.
[img]http://i1143.photobucket.com/albums/n637/new_adm/rad4.png[/img]
But when I insert update delete ,it not effect to SQL.Every is not change.
[img]http://i1143.photobucket.com/albums/n637/new_adm/rad3.png[/img]
and this is my CS code:
and I insert more code in RowChange event like that.It's can update and delete but it can't insert
When i insert it will have a fail:
I don't know how to close this Command.please help me.thank you very very much!
I use automatic
[img]http://i1143.photobucket.com/albums/n637/new_adm/rad.png[/img]
And it can load my data.
[img]http://i1143.photobucket.com/albums/n637/new_adm/rad4.png[/img]
But when I insert update delete ,it not effect to SQL.Every is not change.
[img]http://i1143.photobucket.com/albums/n637/new_adm/rad3.png[/img]
and this is my CS code:
private
void
Form1_Load(
object
sender, EventArgs e)
{
// TODO: This line of code loads data into the 'doanvienDataSet.doanvien' table. You can move, or remove it, as needed.
this
.doanvienTableAdapter.Fill(
this
.doanvienDataSet.doanvien);
}
and I insert more code in RowChange event like that.It's can update and delete but it can't insert
private
void
radGridView1_RowsChanged(
object
sender, Telerik.WinControls.UI.GridViewCollectionChangedEventArgs e)
{
this
.doanvienTableAdapter.Update(
this
.doanvienDataSet.doanvien);
}
When i insert it will have a fail:
There is already an open DataReader associated with this Command which must be closed first.
I don't know how to close this Command.please help me.thank you very very much!