Hi i navigate RadGrid view using following code
but if i group RadGrid then the Selected index of RadGrid does not change
if i change also still hold the previousSelected index
how to solve this
Private
Sub
DOCFirstDtn_Click(
ByVal
sender
As
System.
Object
,
ByVal
e
As
System.EventArgs)
Handles
DOCFirstDtn.Click
If
DocumentsGV.Rows.Count > 0
Then
DocumentsGV.Rows(0).IsSelected =
True
DocPreviousBtn.Enabled =
False
DocNextBtn.Enabled =
True
End
If
End
Sub
Private
Sub
DocLastBtn_Click(
ByVal
sender
As
System.
Object
,
ByVal
e
As
System.EventArgs)
Handles
DocLastBtn.Click
If
DocumentsGV.Rows.Count > 0
Then
DocumentsGV.Rows(DocumentsGV.Rows.Count - 1).IsSelected =
True
DocNextBtn.Enabled =
False
DocPreviousBtn.Enabled =
True
End
If
End
Sub
Private
Sub
DocPreviousBtn_Click(
ByVal
sender
As
System.
Object
,
ByVal
e
As
System.EventArgs)
Handles
DocPreviousBtn.Click
If
DocumentsGV.Rows.Count > 0
Then
Dim
SelectedRowIndex
As
Integer
= DocumentsGV.SelectedRows(0).Index
If
SelectedRowIndex = 1
Then
DocPreviousBtn.Enabled =
False
Else
DocPreviousBtn.Enabled =
True
End
If
DocNextBtn.Enabled =
True
DocumentsGV.Rows(SelectedRowIndex - 1).IsSelected =
True
End
If
End
Sub
Private
Sub
DocNextBtn_Click(
ByVal
sender
As
System.
Object
,
ByVal
e
As
System.EventArgs)
Handles
DocNextBtn.Click
If
DocumentsGV.Rows.Count > 0
Then
Dim
SelectedRowIndex
As
Integer
= DocumentsGV.SelectedRows(0).Index
Dim
vvv
As
Integer
= DocumentsGV.SelectedRows.Count
If
SelectedRowIndex = (DocumentsGV.Rows.Count - 2)
Then
DocNextBtn.Enabled =
False
Else
DocNextBtn.Enabled =
True
End
If
DocPreviousBtn.Enabled =
True
DocumentsGV.Rows(SelectedRowIndex + 1).IsSelected =
True
End
If
End
Sub
but if i group RadGrid then the Selected index of RadGrid does not change
if i change also still hold the previousSelected index
how to solve this