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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to get the input values of controls to GridDataBoundGrid in C# 2010?

Thread ID:





116221 Apr 29,2014 04:52 AM UTC Apr 30,2014 05:16 PM UTC WinForms 4
Tags: GridDataBoundGrid(Classic)
Asked On April 29, 2014 04:52 AM UTC

Hi there,

I want to insert data from Input controls to grid.
            GridCurrentCell cc = this.gdbgrDtls.CurrentCell;
             this.gdbgrDtls[cc.RowIndex, 2].CellValue = frmGroups.Nm;
             this.gdbgrDtls[cc.RowIndex, 3].CellValue = frmGroups.BrCde;
             this.gdbgrDtls[cc.RowIndex, 4].CellValue = frmGroups.PntblNm;
             this.gdbgrDtls[cc.RowIndex, 5].CellValue = frmGroups.rntstck;
             this.gdbgrDtls[cc.RowIndex, 6].CellValue = frmGroups.crndStck;
             this.gdbgrDtls[cc.RowIndex, 7].CellValue = frmGroups.srvdStck;
             this.gdbgrDtls[cc.RowIndex, 8].CellValue = frmGroups.hwdstck;
             this.gdbgrDtls[cc.RowIndex, 9].CellValue = frmGroups.lkdStck;

but it is not working 100%. the above code is working on button click. After clicking it the values are appeared in grid but after clicking on grid those values are disappearing.

Solai A L [Syncfusion]
Replied On April 29, 2014 12:06 PM UTC

Hi Venkata,


Thanks for using Syncfusion products.


We couldn’t able to reproduce the reported issue at our end. Kindly refer the attached sample implementing your requirement. We would very much appreciate if you could reproduce the issue in the provided sample and get back to us. So, that it would help us to provide a prompt solution.


Note: If the data provided doesn’t meet your requirement please provide as a brief explanation about the issue (if possible a step by step procedure).


Please let us know if you have any concerns.


Warm Regards,


Attachment: DBGrid_f62a85c7.zip

Replied On April 29, 2014 04:15 PM UTC

Hi Solai A L,

I am attaching my Application can you please check it.I actually hard code it. if it is connected to database it is not working properly.


Replied On April 29, 2014 04:16 PM UTC

Hi Solai A L,

Please check the file.


Attachment: RowWiseOperation_fc7b6f89.rar

Solai A L [Syncfusion]
Replied On April 30, 2014 05:16 PM UTC

Hi Venkata,


Thanks for the update.


Kindly refer the below provided video. In the video we have provided demo of two samples. First sample is yours and in the second sample we have connected a DB (since, you have mentioned that the issue is reproduced when connected with a DB). In both the samples the issue is not reproduced at our end. Hence, could you please provide us some more details regarding your requirement?


Please let us know if you have any other concerns.


Thanks & Regards,


Attachment: twosamples_34a364f.zip


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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