1. I ll validate a cell and create a new row on sucessful validation.
Row creation will not be done multiple time. I mean to say is threre are
new row. If the user is in the first row and there is already the row been
creted then I ll not create a new row. Its a is vis versa .
I have handled the above senario in datagridview Keypress event. By
"Linda Liu [MSFT]" wrote:
> Hi Komandur,
>
> Based on my understanding, you'd like to add a new row in a DataGridView
> when the focus leaves the current cell. If I'm off base, please feel free
> to let me know.
>
> I performed a test calling the DataGridView.Rows.Add method in the
> CellLeave event handler. The result is that an exception occurs when this
> method is called--'Operation cannot be performed in this event handler'.
>
> Could you tell me why you'd like to add a new row in the DataGridView when
> the focus leaves the current cell? Could you please explain your scenario?
>
> Only if I understand your problem, I may provide you with possible
> assistance.
>
> Thank you for your understanding!
>
> Sincerely,
> Linda Liu
> Microsoft Online Community Support
>
> ==================================================
> Get notification to my posts through email? Please refer to
>
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif > ications.
>
> Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
> where an initial response from the community or a Microsoft Support
> Engineer within 1 business day is acceptable. Please note that each follow
> up response may take approximately 2 business days as the support
> professional working with you may need further investigation to reach the
> most efficient resolution. The offering is not appropriate for situations
> that require urgent, real-time or phone-based interactions or complex
> project analysis and dump analysis issues. Issues of this nature are best
> handled working with a dedicated Microsoft Support Engineer by contacting
> Microsoft Customer Support Services (CSS) at
>
http://msdn.microsoft.com/subscriptions/support/default.aspx. > ==================================================
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>