This is a migrated thread and some comments may be shown as answers.

How to determine whether a value in a cell is changed?

1 Answer 45 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Shamjith
Top achievements
Rank 1
Shamjith asked on 10 Dec 2008, 01:37 PM
I am using telerik winforms grid view. In my grid i have two columns. The first column is an editable column. The second column is a check box column. My requirement is to set the check box column as checked if the user do some modification to the data on the first cell. How to accomplish that?

1 Answer, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 11 Dec 2008, 09:58 AM
Hello Shamjith,

Thank you for your question.

Please use the CellEndEdit event handler:

private void radGridView1_CellEndEdit(object sender, GridViewCellEventArgs e) 
        { 
            if (e.RowIndex == -1) 
                return
            if (this.radGridView1.CurrentCell.ColumnInfo.HeaderText == "column1"
            { 
                this.radGridView1.Rows[e.RowIndex].Cells["column2"].Value = true
            } 
 
        } 

Do not hesitate to write me back if you have more questions.
 

All the best,
Nick
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
GridView
Asked by
Shamjith
Top achievements
Rank 1
Answers by
Nick
Telerik team
Share this question
or