المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Telerik RadGred Question



C# Programming
03-10-2010, 03:01 AM
For anyone who's familiar with Telerik's RadGrid...

I have placed all rows into EditMode by setting AllowMultiRowEdit = true, then doing this:

protected void RadGrid1_PreRender(object sender, EventArgs e)
{
foreach (GridItem item in RadGrid1.MasterTableView.Items)
{
if (item is GridEditableItem)
{
GridEditableItem editableItem = item as GridDataItem;
editableItem.Edit = true;
}
}
RadGrid1.Rebind();
}

The problem now is - I don't see any way to force the grid to save changes. I tried:

protected void cmdSaveChanges_Click(object sender, EventArgs e)
{
SqlDataSource1.Update();
}

But it didn't work. How do I save changes in the grid? I do NOT want Edit or Update button columns in the grid.Everything makes sense in someone's mind