Hi.
I have a RadGridView that SelectionMode property is set to CellSelect.
Dictionary<
int
,
string
> drms =
new
Dictionary<
int
,
string
>();
private
void
ddlSetDurum_SelectedIndexChanged(
object
sender, Telerik.WinControls.UI.Data.PositionChangedEventArgs e)
{
if
(ddlSetDurum.SelectedIndex != 0)
{
drms.Clear();
foreach
(var item
in
rgvTakip.SelectedCells)
{
int
i = item.RowInfo.Index;
// Works fine if no column filtering is done
if
(!drms.ContainsKey(i))
{
drms.Add(i, rgvTakip.Rows[i].Cells[
"tkd"
].Value.ToString());
rgvTakip.Rows[i].Cells[
"tkd"
].Value = ddlSetDurum.SelectedText;
}
}
isDurumSet =
true
;
ddlSetDurum.SelectedIndex = 0;
}
}
After filtering by any column, when I try to get the row index of the selected cells, it gives me the index number in the rows created after the filtering process.
When I want to change the value of a cell using the obtained row index, this time it works according to the original table, not the filtered table.
So I have to get the original index number of that cell before filtering.