Click here to Skip to main content
15,885,952 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Open a grid view in edit mode? Pin
docsoft29-Mar-08 7:28
docsoft29-Mar-08 7:28 
GeneralRe: Open a grid view in edit mode? Pin
Rocky#30-Mar-08 20:43
Rocky#30-Mar-08 20:43 
GeneralRe: Open a grid view in edit mode? Pin
farazsk1129-Mar-08 2:11
farazsk1129-Mar-08 2:11 
GeneralRe: Open a grid view in edit mode? Pin
docsoft29-Mar-08 7:18
docsoft29-Mar-08 7:18 
GeneralRe: Open a grid view in edit mode? Pin
farazsk1129-Mar-08 8:04
farazsk1129-Mar-08 8:04 
GeneralRe: Open a grid view in edit mode? Pin
docsoft29-Mar-08 8:40
docsoft29-Mar-08 8:40 
GeneralRe: Open a grid view in edit mode? Pin
farazsk1129-Mar-08 9:54
farazsk1129-Mar-08 9:54 
Generalhelp Pin
V.Sen...28-Mar-08 23:43
V.Sen...28-Mar-08 23:43 
Datagrid with checkbox using asp.net.so i will select checkbox and the show to datagird datas show in lable,datagrid using paging concept,I need select checkbox in page 1 some datas and then select page 2 in some datas.but i can't any one only.Any body know,tell immediately...and thanks.........

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

Dim ldstdateset As New DataSet
Dim lobjdatatier As New TicDataTier

ldstdateset = lobjdatatier.ExecStoredProc("TIC_GET_tTic_MM_Modules", lstrparameter, "Gmdataset")

Me.MyDataGrid1.DataSource = ldstdateset.Tables(0)
Me.MyDataGrid1.DataBind()

End Sub



Private Sub MyDataGrid1_PageIndexChanged(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridPageChangedEventArgs) Handles MyDataGrid1.PageIndexChanged
Me.MyDataGrid1.CurrentPageIndex = e.NewPageIndex

Me.MyDataGrid1.DataBind()
End Sub



Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim i As Integer = 0

Dim mySelection As StringBuilder = New StringBuilder
mySelection.Append("Selected Row(s):<hr><br>")

Dim GridItem As DataGridItem
For Each GridItem In MyDataGrid1.Items

Dim myCheckbox As CheckBox = CType(GridItem.Cells(0).Controls(1), CheckBox)
If myCheckbox.Checked = True Then

i = i + 1

mySelection.AppendFormat("{0}<br>", GridItem.Cells(1).Text)

' mySelection.Append("<hr>")

mySelection.AppendFormat("{0}<br>", GridItem.Cells(2).Text)

End If

Next

mySelection.Append("<br>")

mySelection.Append("<hr>")

mySelection.AppendFormat("Total selected Value is: {0}<br>", i.ToString())

Me.Label1.Text = mySelection.ToString.Trim()
End Sub





Private Sub MyDataGrid1_PageIndexChanged(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridPageChangedEventArgs) Handles MyDataGrid1.PageIndexChanged
Me.MyDataGrid1.CurrentPageIndex = e.NewPageIndex

Me.MyDataGrid1.DataBind()
End Sub

And once again thanks

regards,

sen.V
GeneralRe: help Pin
farazsk1129-Mar-08 2:48
farazsk1129-Mar-08 2:48 
Questionsession timeout Pin
Soumini Ramakrishnan28-Mar-08 19:58
Soumini Ramakrishnan28-Mar-08 19:58 
GeneralRe: session timeout Pin
N a v a n e e t h28-Mar-08 20:33
N a v a n e e t h28-Mar-08 20:33 
GeneralRe: session timeout Pin
farazsk1129-Mar-08 2:23
farazsk1129-Mar-08 2:23 
GeneralSlow FTP transfer on Production server Pin
Gus'O.28-Mar-08 10:28
Gus'O.28-Mar-08 10:28 
Generalerror on insert a new row in a custom gridview Pin
zio_pino28-Mar-08 8:40
zio_pino28-Mar-08 8:40 
GeneralRe: error on insert a new row in a custom gridview Pin
led mike28-Mar-08 9:07
led mike28-Mar-08 9:07 
GeneralRe: error on insert a new row in a custom gridview Pin
zio_pino31-Mar-08 5:32
zio_pino31-Mar-08 5:32 
QuestionDropDownList Creation Pin
kontax28-Mar-08 8:08
kontax28-Mar-08 8:08 
GeneralRe: DropDownList Creation Pin
Mark J. Miller28-Mar-08 9:25
Mark J. Miller28-Mar-08 9:25 
GeneralRe: DropDownList Creation Pin
kontax28-Mar-08 10:04
kontax28-Mar-08 10:04 
GeneralRe: DropDownList Creation Pin
Mark J. Miller31-Mar-08 6:26
Mark J. Miller31-Mar-08 6:26 
QuestionHow to read Texbox value in a grid Pin
lav naphade28-Mar-08 8:05
lav naphade28-Mar-08 8:05 
GeneralRe: How to read Texbox value in a grid Pin
Mark J. Miller28-Mar-08 9:39
Mark J. Miller28-Mar-08 9:39 
GeneralRe: How to read Texbox value in a grid Pin
lav naphade29-Mar-08 6:01
lav naphade29-Mar-08 6:01 
GeneralRe: How to read Texbox value in a grid Pin
Mark J. Miller31-Mar-08 6:13
Mark J. Miller31-Mar-08 6:13 
QuestionGridview with nested repeater width problem Pin
allenpotter28-Mar-08 6:18
allenpotter28-Mar-08 6:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.