Hi there i have a radgrid on which i have to find a value and if the item is found then generate message
below is my code:
Protected
Sub
btnAdd_Click(
ByVal
sender
As
Object
,
ByVal
e
As
EventArgs)
Handles
btnAdd.Click
If
IsAlreadyExist()
Then
ram.Alert(
""
)
Else
If
IsAlreadyAdded()
Then
ram.Alert(
""
)
Else
employees()
End
If
End
If
End
Sub
Private
Function
IsAlreadyAdded()
As
Boolean
'If rgListnk.MasterTableView.Items.Count > 0 Then
Dim
itm
As
GridDataItem = rg.MasterTableView.FindItemByKeyValue(
"DEFAULT"
,
"Y"
)
If
IsNothing(itm)
Then
Return
False
Else
Return
True
End
If
End
Function