Grid view some Q:

  • Thread starter Thread starter amarrr
  • Start date Start date
A

amarrr

Hi all,
I new in asp.net and I have some questins about gridview...
- How can I Delete GridView Data when is dataSource for gridview is
dataTable... I also wont remove that record from dataTable...
- How can I insert in dataTable (gridView) new record where source is
another gridView1, source for gridView1 is Select statmens...
I'm fairly new to .net and using VB.net

Regards...
 
I try this for insert new row
gridView_SelectedIndexChanged
Dim row As GridViewRow = gridView.SelectedRow
Dim newR As DataRow
newR = dataTableEnd.NewRow()
newR.Item("ID") = row.Cells(0)
newR.Item("Name") = row.Cells(2)

dataTableEnd.Rows.Add(newR)
bindEnd()
but this dosen't work...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top