Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > How to delete a row from DataGrid Control?

Reply
Thread Tools

How to delete a row from DataGrid Control?

 
 
Nandish
Guest
Posts: n/a
 
      09-23-2003
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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
ok I can do a totals row but how about a percentage row after each data row D ASP .Net Datagrid Control 0 05-23-2005 04:10 PM
Add row under selectedindex row of datagrid ujjc001@gmail.com ASP .Net 0 12-15-2004 12:00 AM
How to add a new row to a datagrid with values of the selected row =?Utf-8?B?U3VyZXNo?= ASP .Net 1 11-22-2004 09:04 AM
Referencing Dataset row not Datagrid row Craig ASP .Net 2 11-02-2004 05:27 PM



Advertisments
 



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 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57