-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDefault.aspx.vb
32 lines (29 loc) · 1.16 KB
/
Default.aspx.vb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Imports System
Imports System.Collections.Generic
Imports System.Linq
Imports System.Web
Imports System.Web.UI
Imports System.Web.UI.WebControls
Partial Public Class _Default
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
If hf.Contains("isNewClicked") Then
If CBool(hf.Get("isNewClicked")) = True Then
gridView.SettingsEditing.Mode = DevExpress.Web.GridViewEditingMode.EditForm
Else
gridView.SettingsEditing.Mode = DevExpress.Web.GridViewEditingMode.Batch
End If
End If
End Sub
Protected Sub ASPxCallbackPanel1_Callback(ByVal sender As Object, ByVal e As DevExpress.Web.CallbackEventArgsBase)
If hf.Contains("isNewClicked") Then
If CBool(hf.Get("isNewClicked")) = True Then
gridView.SettingsEditing.Mode = DevExpress.Web.GridViewEditingMode.EditForm
hf.Set("isNewClicked", False)
gridView.AddNewRow()
Else
gridView.SettingsEditing.Mode = DevExpress.Web.GridViewEditingMode.Batch
End If
End If
End Sub
End Class