ec...,
i don't know how to use rowindex... it can update, but can not update data according data that we choose...
i have try many..many times... if u give code about index, it can work 1000%...
my detail problem display like that:
shipperid companyname phone status
1 microsoft 12345 button checkboxfield
2 sony 7890 button checkboxfield
3 bandai 435345 button checkboxfield
when click button in row 3, it display:
shipperid companyname phone status
1 microsoft 12345 button checkboxfield
2 sony 7890 button checkboxfield
3 microsoft 12345 button checklist
if i click button row2, it display:
shipperid companyname phone status
1 microsoft 12345 button checkboxfield
2 microsoft 12345 button checklist
3 microsoft 12345 button checklist
from that, we know the row1 replace all row data that we click their button... it because my index code is wrong...
i have change it many times, but it can not too. sometimes row3 replace alldata ..
this is code:
Protected Sub SqlDataSource1_Updating(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.SqlDataSourceCommandEventArgs) Handles SqlDataSource1.Updating
Dim index As Integer = Me.GridView1.Rows(0).Cells(0).Text
Dim company As String = Me.GridView1.Rows(index).Cells(1).Text
Dim phone As integer = Me.GridView1.Rows(index).Cells(2).Text
e.Command.Parameters("@companyname").Value = company
e.Command.Parameters("@phone").Value = phone
e.Command.Parameters("@status").Value = "true"
End Sub
i have use many way, but don't know how to get index row...
Dim index As Integer = Me.GridView1.selectedrow
Dim index As Integer = Me.GridView1.selecteindex
Dim index As Integer = Me.GridView1.selectevalue
Dim index As Integer = Me.GridView1.rowcommand
and other...
pls ec........................
thx...