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. Image for the cookie policy date
close icon

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

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.

4 Replies

SA Solai A L Syncfusion Team 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

VE Venkata 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.


VE Venkata April 29, 2014 04:16 PM UTC

Hi Solai A L,

Please check the file.


Attachment: RowWiseOperation_fc7b6f89.rar

SA Solai A L Syncfusion Team 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

Live Chat Icon For mobile
Up arrow icon