
Serdar Genc
Top achievements
Rank 1
Serdar Genc
asked on 19 Sep 2010, 05:00 PM
hi,
When I edit with GridView when the wizard does not update table
please help..
thankyou
When I edit with GridView when the wizard does not update table
please help..
thankyou
8 Answers, 1 is accepted
0

Richard Slade
Top achievements
Rank 2
answered on 19 Sep 2010, 11:22 PM
Not quite sure what you mean, but try..
radGridView1.TableElement.BeginUpdate()
' Do some stuff
radGridView1.TableElement.EndUpdate()
radGridView1.MasterTemplate.Refresh()
0

Serdar Genc
Top achievements
Rank 1
answered on 20 Sep 2010, 08:43 AM
thanks richard.
actually problem is as follows. drag and drop GridView component releases.
Then, datasource, etc. I give the values. Then running ... records in coming ... I can fix.ekleyebiliyorum line. I see the changes not been off the record form. That is not a change to the table. I forget to do one thing for sure.
actually problem is as follows. drag and drop GridView component releases.
Then, datasource, etc. I give the values. Then running ... records in coming ... I can fix.ekleyebiliyorum line. I see the changes not been off the record form. That is not a change to the table. I forget to do one thing for sure.
0

Richard Slade
Top achievements
Rank 2
answered on 20 Sep 2010, 08:58 AM
Sorry - but I'm not understanding the problem. Can you post an image of the problem?
0

Serdar Genc
Top achievements
Rank 1
answered on 20 Sep 2010, 09:14 AM
I drag and drop the “gridview” component into “windowsForm”. Then I configure its such as “datasource“ etc. Then I run the application. I can view the records in table, on gridview. I can get in the cell for editing, I can add new rows, and I close the application. When I look at the tabla in database, I cannot see the changes I made to be reflected. That is the problem I experience.Do I have to insert anything to the code , for updating table.
0

Richard Slade
Top achievements
Rank 2
answered on 20 Sep 2010, 09:20 AM
Hi,
You need to give more information about your datasource.
E.g. If you are using datatables and datasets, then are you calling Update() at the end?
You need to give more information about your datasource.
E.g. If you are using datatables and datasets, then are you calling Update() at the end?
0

Serdar Genc
Top achievements
Rank 1
answered on 20 Sep 2010, 09:31 AM
I dont call anything. Could you please send an example to me. For example, any code for editting a table in northwind database will be good.
thanks.
thanks.
0

Serdar Genc
Top achievements
Rank 1
answered on 20 Sep 2010, 12:43 PM
Can you send an example. :)
tnks
tnks
0
Hello Serdar,
Please review this support article for binding RadGridView to DataSet. It explains how to generate a DataSource for RadGridView and populate the control with data.
To commit the changes to database, you can use the TableAdapter Update method. You can call this method where you find it is appropriate for your scenario. For example, it could be on a button click (used as an Update button) or on CurrentRowChanged event of RadGridView:
I hope it helps.
Best regards,
Alexander
the Telerik team
Please review this support article for binding RadGridView to DataSet. It explains how to generate a DataSource for RadGridView and populate the control with data.
To commit the changes to database, you can use the TableAdapter Update method. You can call this method where you find it is appropriate for your scenario. For example, it could be on a button click (used as an Update button) or on CurrentRowChanged event of RadGridView:
this
.radGridView1.CurrentRowChanged +=
new
Telerik.WinControls.UI.CurrentRowChangedEventHandler(radGridView1_CurrentRowChanged);
private
void
radGridView1_CurrentRowChanged(
object
sender, Telerik.WinControls.UI.CurrentRowChangedEventArgs e)
{
this
.tableAdapter.Update(
this
.dataSet.Table);
}
I hope it helps.
Best regards,
Alexander
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items