Click here to Skip to main content
15,881,516 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have a dev express grid view in which i want to edit the row. when i click the edit option it shows update and cancel buttons with text boxes. But i am not able to update the value which i am giving in the text box. how to update it plz help me .
auto generate columns is false in my case.
Posted
Comments
joshrduncan2012 25-Mar-13 10:13am    
Description of code doesn't help. Can you show us your code where you are stuck?

In the update event; Update the dataset of that particular column


protected void update(object sender, EventArgs e)
{
dr["Firstname"] = txtFirstname.Text;

}

Make sure your datarow is current edit click

Datarow dr = dt.Select("EventID= {0}",EventID)
 
Share this answer
 
Comments
Member 8388026 25-Mar-13 10:39am    
how to do in dev express grid view
Member 8649895 25-Mar-13 11:08am    
Sorry, i am not familiar with devexpress to say more clearly

GridView view = MyXtraGrid.Views[0] as GridView;
int index = 0;
int topVisibleIndex = 0;
if (view != null)
{
index = view.FocusedRowHandle;
topVisibleIndex = view.TopRowIndex;
}

MyXtraGrid.BeginUpdate();
MyXtraGrid.DataSource = collection;
MyXtraGrid.RefreshDataSource();

if (view != null)
{
view.FocusedRowHandle = index;
view.TopRowIndex = topVisibleIndex;
}

MyXtraGrid.EndUpdate();

Try this hope it helps
hi, can u show ur code?
refer this link, it may helps you.
http://demos.devexpress.com/ASPxGridViewDemos/GridEditing/EditForm.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900