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.

Row level validation for GridDataBoundGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

71532 Feb 4,2008 09:54 PM Feb 9,2008 05:22 AM Windows Forms 6
loading
Tags: GridControl
Kevin
Asked On February 4, 2008 09:54 PM

Hi,
I am doing validation using RowLeave event of a GridDataBoundGrid. I also have a Save button outside of the grid. I found that when I click the Save button, the RowLeave event gets fired but the Save button's Click event is never fired. Please help with this row level validation or let me know if I should do validation using another event.


Fathima Shalini P [Syncfusion]
Replied On February 5, 2008 11:38 PM

Hi Kevin,

Thank you for your interest in Syncfusion Products.

I am afraid that I was not able to reproduce the issue you mentioned here. Please find the sample in the following link that illustrates this:

http://websamples.syncfusion.com/samples/Grid.Windows/71532/main.htm

Please have a look at the above sample and if still the issue exists, could you please try reproducing it in the above sample or send us the reproducing steps so that we could sort out the cause of the issue and provide you a solution?

Please let me know if any concerns.

Regards,
Fathima


Kevin
Replied On February 6, 2008 08:31 AM

Hi Fathima,

Thanks for you reply. I can actually easily reproduce this problem using your sample. Just enter x in any row, and click the button. The RowLeave is executed, but the button's code was never touched. If you set a break point, it is very obvious. You need to click the button the second time for it to be executed. Please take a look. My goal is to click the button just once.

Thanks,
Kevin



Fathima Shalini P [Syncfusion]
Replied On February 7, 2008 01:04 AM

Hi Kevin,

Thank you for your update.

I am afraid that I was not able to reproduce the issue mentioned here. Please find the videoclip that illustrates this:

http://websamples.syncfusion.com/samples/Tools.Windows/41272/main.htm

I tested this with our latest version v6.1.0.34. Could you please let me know the version that you are using?

If am missing anything, could you please let me know so that I could sort out the cause of issue and provide you a better solution?

Please let me know if any concerns.

Regards,
Fathima.



Fathima Shalini P [Syncfusion]
Replied On February 7, 2008 01:08 AM

Hi Kevin,

Sorry for the incorrect link provided. Please find the correct link given below:

http://websamples.syncfusion.com/samples/Grid.Windows/F71532_Video/VideoClip.zip

Regards,
Fathima


Kevin
Replied On February 8, 2008 02:37 PM

Fathima,
We are using only 4.2 I guess that's why we see different things. Any suggestion for this version?

By the way, for the same grid, if the column width is too large, the grid.Model.ColWidths[ColName] = Width does not really set the column width for the first time. It works from the second time on. I tried to use Refresh, and BeginUpdate/EndUpdate, but it's not working. Please advise if possible. If you need me to post another question, please let me know.

Thanks,
Kevin



Fathima Shalini P [Syncfusion]
Replied On February 9, 2008 05:22 AM

Hi Kevin,

Thank you for your update.


1) RowLeave event is called when button is clicked:

I am afraid that still I was not able to reproduce the issue in 4.2 also. Could you please send me a simple sample and reproducing steps, so that I can sort out the
cause of issue and provide you a better solution?

2) To set the column size programmatically we need to set AllowResizeToFit to false. Please refer the following code snippets:

this.gridDataBoundGrid1.AllowResizeToFit = false;
this.gridDataBoundGrid1.Model.ColWidths["Col1"] = 100;

Please let me know if any concerns.

Regards,
Fathima


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.

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.

;