6 Answers, 1 is accepted
0
Hi Ramasamy,
Maya
the Telerik team
You can handle SelectedCellsChanged event of the grid and work with the AddedCells and RemovedCells collections from the arguments.
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0

Ramasamy
Top achievements
Rank 1
answered on 28 Sep 2011, 09:01 AM
Hi Maya,
I have tried with the two methods. But I cannot able to get the previous cell value.
for example,
Selected Row - 5, Column - 5
I want the value present in Row 5 and column 4. How it can achievable?
Thanks,
Ramasamy
I have tried with the two methods. But I cannot able to get the previous cell value.
for example,
Selected Row - 5, Column - 5
I want the value present in Row 5 and column 4. How it can achievable?
Thanks,
Ramasamy
0
Hi Ramasamy,
Maya
the Telerik team
Has the cell in column 4 been selected ? Nevertheless, you may still get the underlying item and find the value for the property corresponding to column 4.
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0

Ramasamy
Top achievements
Rank 1
answered on 28 Sep 2011, 09:36 AM
Hi Maya,
I have selected only the cell 5 but I want the value in cell 4.
Thanks,
Ramasamy
I have selected only the cell 5 but I want the value in cell 4.
Thanks,
Ramasamy
0

Ramasamy
Top achievements
Rank 1
answered on 28 Sep 2011, 10:03 AM
Hi Maya,
I am binding a data table to the self reference gridview and I am able to access the parent grid columns in the code behind as
RadGridView1.Columns[0].IsVisible = false;
How can i do that for the child grid columns. Please help me it will solve lot of my issues.
Thanks,
Ramasamy
I am binding a data table to the self reference gridview and I am able to access the parent grid columns in the code behind as
RadGridView1.Columns[0].IsVisible = false;
How can i do that for the child grid columns. Please help me it will solve lot of my issues.
Thanks,
Ramasamy
0
Hi Ramasamy,
Considering how to reach the columns collection of the child grid, you can take a look at this article for a reference.
All the best,
Maya
the Telerik team
You can get the corresponding item for a selected cell as follows:
void clubsGrid_SelectedCellsChanged(object sender, GridViewSelectedCellsChangedEventArgs e)
{
GridViewCellInfo cellInfo = e.AddedCells[e.AddedCells.Count - 1];
Club item = cellInfo.Item as Club;
var name = item.Name;
}
Considering how to reach the columns collection of the child grid, you can take a look at this article for a reference.
All the best,
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>