We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

PropertyChangedEventHandler and GDBG...;;;

Thread ID:

Created:

Updated:

Platform:

Replies:

78022 Nov 25,2008 01:31 PM UTC Nov 30,2008 12:23 AM UTC Windows Forms 4
loading
Tags: GridControl
Hyung-Jin Lee
Asked On November 25, 2008 01:31 PM UTC

Hello.
I have a qustion and need help.
I used GridDataBoundGrid and datasource is
BindingList.
At the GridDataBoundGrid, When I touched the last row and type something, (add new data and type only one or two colums)and touch the textbox or button,
the contents at the last row are gone.
If I didn't use
"public event PropertyChangedEventHandler PropertyChanged;" at User Class,
It didn't happen.
I want to use PropertyChangedEventHandler
and add row.
Can you give an advice, please.
Please, check attatched file .
Thank you .



Hyung-Jin Lee
Replied On November 25, 2008 01:33 PM UTC

Sorry
I forgot attatch file...



GridQustion_a4287695.zip

Nisha Arockiya A [Syncfusion]
Replied On November 27, 2008 11:36 AM UTC

Hi Chin,

Sorry for the delay in responding.

The above mentioned issue is caused due to binding nature of the NewRow in the BindingList DataSource of GridDataBoundGrid.Here is a workaround that solves this issue.Please refer to it.

//Subscribe this event
this.gridDataBoundGrid1.CurrentCellEditingComplete += new System.EventHandler(this.gridDataBoundGrid1_CurrentCellEditingComplete);

private void gridDataBoundGrid1_CurrentCellEditingComplete(object sender, EventArgs e)
{
bl.AddNew();
bl.AllowNew = false;
}


Please try this and let me know if this serve your needs.

Regards,
Nisha


Hyung-Jin Lee
Replied On November 29, 2008 09:40 AM UTC

Thank you very much.
This is what I need. ^^


Hyung-Jin Lee
Replied On November 30, 2008 12:23 AM UTC

Hello. Nisha
Thank you for your help,
but if I add below code,

private void gridDataBoundGrid1_CurrentCellEditingComplete(object sender, EventArgs e)
{
ct.users.AddNew();
ct.users.AllowNew = false;
}

whenever I click any cell, new row is added.
So ... is there any way to stop it ?


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;