PC Review


Reply
Thread Tools Rate Thread

Datagrid currencellchanged event

 
 
obiwan1130
Guest
Posts: n/a
 
      3rd Mar 2004
I have a datagrid that I'm populating using a datasource.

I have code that needs to run on the currentcellchanged event.

After populating the grid, the currentcell is Row 0, Column 0.

When I tap on the first row of my grid, the currentcellchanged event
isn't firing--because the current cell hasn't changed.

Is this a known problem? Is there a workaround?

Thanks in advance...
 
Reply With Quote
 
 
 
 
Paul G. Tobey [eMVP]
Guest
Posts: n/a
 
      3rd Mar 2004
It works fine for me. When I click in the DataGrid the first time, I get
the CurrentCellChanged event...

Paul T.

"obiwan1130" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I have a datagrid that I'm populating using a datasource.
>
> I have code that needs to run on the currentcellchanged event.
>
> After populating the grid, the currentcell is Row 0, Column 0.
>
> When I tap on the first row of my grid, the currentcellchanged event
> isn't firing--because the current cell hasn't changed.
>
> Is this a known problem? Is there a workaround?
>
> Thanks in advance...



 
Reply With Quote
 
Franky
Guest
Posts: n/a
 
      4th Mar 2004
It is normal than if your current row = 0 then when you tap on the first the
event doesn't fire because you are at index 0.

After fill the grid when no row was selected your index suppose to be -1.

If you set by programmation the selected to 1 so fire the event by
programmation to.


____________________
Franky
(E-Mail Removed)



"obiwan1130" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I have a datagrid that I'm populating using a datasource.
>
> I have code that needs to run on the currentcellchanged event.
>
> After populating the grid, the currentcell is Row 0, Column 0.
>
> When I tap on the first row of my grid, the currentcellchanged event
> isn't firing--because the current cell hasn't changed.
>
> Is this a known problem? Is there a workaround?
>
> Thanks in advance...



 
Reply With Quote
 
obiwan1130
Guest
Posts: n/a
 
      4th Mar 2004
I agree that the index should probably be -1, but it's not.

I am not setting it by programmation currently. But I have worked
around this issue by firing the event myself immediatly after
population of the grid.

But it seems like this is an unnecessary step.


"Franky" <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)>...
> It is normal than if your current row = 0 then when you tap on the first the
> event doesn't fire because you are at index 0.
>
> After fill the grid when no row was selected your index suppose to be -1.
>
> If you set by programmation the selected to 1 so fire the event by
> programmation to.
>
>
> ____________________
> Franky
> (E-Mail Removed)
>
>
>
> "obiwan1130" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > I have a datagrid that I'm populating using a datasource.
> >
> > I have code that needs to run on the currentcellchanged event.
> >
> > After populating the grid, the currentcell is Row 0, Column 0.
> >
> > When I tap on the first row of my grid, the currentcellchanged event
> > isn't firing--because the current cell hasn't changed.
> >
> > Is this a known problem? Is there a workaround?
> >
> > Thanks in advance...

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
How to add a Dropdown list to a datagrid at runtime (dynamic) without using template columns in ASP.NET and still have the ability to us the datagrid Update event. Daniel Roth Microsoft Dot NET Framework 0 5th Apr 2005 04:54 AM
Datagrid cell change event? Where to find event. Roger Microsoft VB .NET 4 29th Mar 2005 09:45 PM
any event in datagrid raised when data in datagrid changed ali asjad Microsoft Dot NET 1 25th Feb 2005 05:51 PM
datagrid event =?Utf-8?B?cm9kY2hhcg==?= Microsoft VB .NET 3 3rd Dec 2004 01:55 PM
DataGrid - New row event??? Douglas Buchanan Microsoft Dot NET 1 14th Nov 2004 07:33 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:59 AM.