How to delete a row from DataGrid Control?

N

Nandish

How to delete a row from DataGrid Control?



Problem: I am getting 4000 rows from "DataAdapter", filling in "DataSet".
Assigning the 'DataSet" to DataGrid. During the bind verify with Rule
Engine to display the row or not. If it is not displayable I would like to
delete from DataGrid. How to do this?



'--- code

myDataAdapter.Fill(myDataSet, "table_name")

myDataGrid.DataSource = myDataSet

myDataGrid.DataMember = "table_name"

myDataGrid.DataBind()



Sub myDataGrid_OnItemDataBind(ByVal sender As Object, ByVal e As
DataGridItemEventArgs)



' remove few rows which do not pass rules for

' display in the datagrid



' How to delete a row from the DataGrid?

End sub
 

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

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top