ASP.NET Web Controls >> <asp:ButtonColumn

by CG » Wed, 03 Sep 2003 02:51:46 GMT

Hi,

I have a datagrid with a button column.

This an edit button. On licking the button the below sub
is called.

Private Sub dgQuote_EditCommand1(ByVal source As Object,
ByVal e As
System.Web.UI.WebControls.DataGridCommandEventArgs)
Handles dgQuote.EditCommand

How do I get the ID of my record taht the user has just
clicked Edit on??

Thanks,
CG.

ASP.NET Web Controls >> <asp:ButtonColumn

by CG » Wed, 03 Sep 2003 02:51:50 GMT


Hi,

I have a datagrid with a button column.

This an edit button. On licking the button the below sub
is called.

Private Sub dgQuote_EditCommand1(ByVal source As Object,
ByVal e As
System.Web.UI.WebControls.DataGridCommandEventArgs)
Handles dgQuote.EditCommand

How do I get the ID of my record taht the user has just
clicked Edit on??

Thanks,
CG.

Similar Threads

1. why <asp:ButtonColumn> for datagrid doesn't have CausesValidation property like <asp:Button> - Asp.Net

2. advanced question: making <asp:ButtonColumn> CausesValidation=False

Hi,

i stated that this is an advanced question because i have a post from few
days ago that i received answers to with suggestions that looked good but
did not work, so please if you post a reply make sure your suggestion
actually works.

like a <asp:button> control have a CausesValidation property that allows it
to POST a button command event to the server without causing the page to
make validation on form inputs, i need to get the same functionallity to an
<asp:button> culomn with a delete command.

i tried to use the OnItemCreated event of the datagrid, to add this
property, but perhaps becuase the button inside the grid is actually an
array of buttons, setting the property had no effect.

also tried to make an <TemplateItem> with the button inside, but again
setting the property had no effect and the form did passed the validation
check.

please advise, but don't just throw "why don't you try this", and as it did
last time, it did not work.

i'm gessing there must be a way (even use javascript or something) - to make
a command from the grid row without passing the form validation.


TIA, z.



3. running client side script after an <asp:ButtonColumn> click event

4. help <<<<<<<<<<<<<<<<<<<<<<<<<<<,,,,

Visual C++ 2005 Express

MVP's and experience programmer's only please!...

I need to get the number of lines in a textbox so I can insert them into a 
listview.  The text comes from my database and is unformatted.  I display the 
text to my user in the listview.  The textbox I create logically in the 
program, and I initialize the correct properties for a normal multiline 
editor.

When the user changes the column size then I reload the lines accordinally.  
The problem I am having is when I get the lines property which is a 
array<^>^().  The lenght is always 1 no matter how many lines are in the 
textbox.

In MFC when the lines are wraped the new line character is automattically 
inserted, but here it's not.

Can you help me solve this problem?  I would really appreciate it!

Thanks!... 
-- 
Eric Miller

5. Please answer <<<<<<<<<<<<<<<<<<

6. <asp:CommandField with dynamic SelectText or <asp:Hyperlink with server side call

Can somebody suggest a way for me to bind the SelectText instead of
a static text or show any cool methods to make a server side postback
to
the same page instead of navigate on a Hyperlink.

Either of those solutions are acceptable. I am using a GridView control
and would like to have one fo these solutions.

Thanks in advance.
MasterOfNone