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.

Edit Row in Grid

Thread ID:

Created:

Updated:

Platform:

Replies:

117777 Dec 11,2014 08:17 AM Mar 28,2018 12:28 AM Windows Forms 5
loading
Tags: GridControl
dev
Asked On December 11, 2014 08:17 AM

Hi,

i have created data grid. i want to edit rows of the grid. how can i do this ?

Neelakandan Kannan [Syncfusion]
Replied On December 13, 2014 12:17 AM

Hi Dev,

 

Thank you for your interest in Syncfusion products.

 

We regret to let you know that we could not able to clearly understand your query. We need some more details regarding your scenario. Here we have provided the solution that we understood.

If you want to change the values of the cells in Grid, you can use Text or CellValue property or QueryCellInfo event. Please make use of below code,

 

Code Snippet:

 

this.gridControl1[2, 5].CellValue = "Sample_Text";

 

this.gridControl1.QueryCellInfo += new GridQueryCellInfoEventHandler(gridControl1_QueryCellInfo);

void gridControl1_QueryCellInfo(object sender, GridQueryCellInfoEventArgs e)

        {

            if (e.RowIndex == 2 && e.ColIndex == 5)

            {

                e.Style.CellValue = "Sample_Text";

            }

        }

 

Please let me know if I misunderstood your query.

 

Regards,

Neelakandan


dev
Replied On December 19, 2014 02:49 AM

Thanx kannan it solved my problem. :)


Neelakandan Kannan [Syncfusion]
Replied On December 21, 2014 11:03 PM

Hi Dev,

 

Thank you for your update.

 

Please let us know if you want any assistance on this. We will assist you as soon as possible.

 

Regards,

Neelakandan


A Stern
Replied On March 27, 2018 06:17 AM

Hi Dev,

 

Thank you for your interest in Syncfusion products.

 

We regret to let you know that we could not able to clearly understand your query. We need some more details regarding your scenario. Here we have provided the solution that we understood.

If you want to change the values of the cells in Grid, you can use Text or CellValue property or QueryCellInfo event. Please make use of below code,

 

Code Snippet:

 

this.gridControl1[2, 5].CellValue = "Sample_Text";

 

this.gridControl1.QueryCellInfo += new GridQueryCellInfoEventHandler(gridControl1_QueryCellInfo);

void gridControl1_QueryCellInfo(object sender, GridQueryCellInfoEventArgs e)

        {

            if (e.RowIndex == 2 && e.ColIndex == 5)

            {

                e.Style.CellValue = "Sample_Text";

            }

        }

 

Please let me know if I misunderstood your query.

 

Regards,

Neelakandan


Hello

Sindhu Nagarajan [Syncfusion]
Replied On March 28, 2018 12:28 AM

Hi Stern, 
  
Thanks for the update.  
  
Please let us know if you need any further assistance on this. 
  
Regards, 
Sindhu  


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.

;