User Profile

Collapse

Profile Sidebar

Collapse
rouse02
rouse02
Last Activity: Dec 17 '11, 04:09 AM
Joined: Nov 24 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • rouse02
    replied to deleting a row of a gridview
    There is actually a template button for this, if you go to add columns in the gridview editor, you can add a delete button, its under command buttons. This will however, delete your entity from the database as well.
    Otherwise, I believe that you will have to do some quires that just don't show that row.

    Like
    Make a button field and make it a template column, under the click event,
    Button btn = new (Button)sender;...
    See more | Go to post

    Leave a comment:


  • humm... seems to me that this could be done with a query and then past that into the gridview.

    Code:
    List<column data type> bla = new List<column data type>();
    
    for (int i = 0, i < System.Data.SqlClient.SqlCommand("Select Count(column name) From table"); i++)
    {
      bla.Items.Add(System.Data.SqlClient.SqlCommand("Select column name From table Where primaryKeyID = @prim")
    System.Data.SqlClient.SqlCommand.Parameters.Add("prim",
    ...
    See more | Go to post
    Last edited by Frinavale; Nov 24 '11, 04:25 PM. Reason: Added code tags.

    Leave a comment:

No activity results to display
Show More
Working...