Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Data Grid Select Button Does Not Work

Reply
Thread Tools

Data Grid Select Button Does Not Work

 
 
Bruce LeMond
Guest
Posts: n/a
 
      11-13-2003
I'm developing a web form, which includes a data grid, in
Visual Basic using Visual Studio forms designer. I'm
wanting to update the completion date on an item to the
current date and time being generated by the system, and I
don't want to edit any fields. I put in a select button,
and code it that whenever the button is clicked, the
completion date will be automatically updated to the item
record. The only event handler I could find for this is
the Datagrid1.ItemCommand. I tried it and executed, and
it did nothing. Anyone knows what event that this would
raise? I found in the help screen that the ItemCommand
event is supposed to fire on whenever any button in the
data grid is clicked. I don't find such a thing as
SelectCommand event for data grid.

Thanks in advance for your help.
 
Reply With Quote
 
 
 
 
Bruce LeMond
Guest
Posts: n/a
 
      11-14-2003
I had the button type as push button. I changed it to
link button and tried again and it executed the
ItemCommand handler method. So why would the push button
won't work? A customer may prefer the appearance of a
push button instead of a link button.
>-----Original Message-----
>I'm developing a web form, which includes a data grid, in
>Visual Basic using Visual Studio forms designer. I'm
>wanting to update the completion date on an item to the
>current date and time being generated by the system, and

I
>don't want to edit any fields. I put in a select button,
>and code it that whenever the button is clicked, the
>completion date will be automatically updated to the item
>record. The only event handler I could find for this is
>the Datagrid1.ItemCommand. I tried it and executed, and
>it did nothing. Anyone knows what event that this would
>raise? I found in the help screen that the ItemCommand
>event is supposed to fire on whenever any button in the
>data grid is clicked. I don't find such a thing as
>SelectCommand event for data grid.
>
>Thanks in advance for your help.
>.
>

 
Reply With Quote
 
 
 
 
Nomolos
Guest
Posts: n/a
 
      11-14-2003
I have the same problem. It looks like a bug in Visual Studio .NET or
something. Simply changing the property of the control to look like a button
instead of a link shouldn't change the event fired.
"Bruce LeMond" <> wrote in message
news:09e401c3aab9$6fc59fc0$...
> I had the button type as push button. I changed it to
> link button and tried again and it executed the
> ItemCommand handler method. So why would the push button
> won't work? A customer may prefer the appearance of a
> push button instead of a link button.
> >-----Original Message-----
> >I'm developing a web form, which includes a data grid, in
> >Visual Basic using Visual Studio forms designer. I'm
> >wanting to update the completion date on an item to the
> >current date and time being generated by the system, and

> I
> >don't want to edit any fields. I put in a select button,
> >and code it that whenever the button is clicked, the
> >completion date will be automatically updated to the item
> >record. The only event handler I could find for this is
> >the Datagrid1.ItemCommand. I tried it and executed, and
> >it did nothing. Anyone knows what event that this would
> >raise? I found in the help screen that the ItemCommand
> >event is supposed to fire on whenever any button in the
> >data grid is clicked. I don't find such a thing as
> >SelectCommand event for data grid.
> >
> >Thanks in advance for your help.
> >.
> >



 
Reply With Quote
 
Bruce LeMond
Guest
Posts: n/a
 
      11-18-2003
Thank you, Nomolos, for your reply.
>-----Original Message-----
>I have the same problem. It looks like a bug in Visual

Studio .NET or
>something. Simply changing the property of the control to

look like a button
>instead of a link shouldn't change the event fired.
>"Bruce LeMond" <>

wrote in message
>news:09e401c3aab9$6fc59fc0$...
>> I had the button type as push button. I changed it to
>> link button and tried again and it executed the
>> ItemCommand handler method. So why would the push

button
>> won't work? A customer may prefer the appearance of a
>> push button instead of a link button.
>> >-----Original Message-----
>> >I'm developing a web form, which includes a data grid,

in
>> >Visual Basic using Visual Studio forms designer. I'm
>> >wanting to update the completion date on an item to the
>> >current date and time being generated by the system,

and
>> I
>> >don't want to edit any fields. I put in a select

button,
>> >and code it that whenever the button is clicked, the
>> >completion date will be automatically updated to the

item
>> >record. The only event handler I could find for this

is
>> >the Datagrid1.ItemCommand. I tried it and executed,

and
>> >it did nothing. Anyone knows what event that this

would
>> >raise? I found in the help screen that the ItemCommand
>> >event is supposed to fire on whenever any button in the
>> >data grid is clicked. I don't find such a thing as
>> >SelectCommand event for data grid.
>> >
>> >Thanks in advance for your help.
>> >.
>> >

>
>
>.
>

 
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
select gridview row without using select button? =?Utf-8?B?RGFiYmxlcg==?= ASP .Net 5 02-27-2009 02:56 AM
2005 Grid view edit button does not work first time =?Utf-8?B?RGFtaWVu?= ASP .Net 0 06-12-2006 09:31 AM
How to change data in grid after you change the SQL select for the data adapter tom c ASP .Net Datagrid Control 1 06-08-2006 02:46 PM
Data Grid Paging Prev button does not fire the PageIndexChanged ev Mike Lashbrook ASP .Net Web Controls 0 07-16-2004 11:50 PM
select of select box will select multiple in another box palmiere Javascript 1 02-09-2004 01:11 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