Re: Locating a Datagrid Row from the Datasource Row, FAST
- From: Ty <tylershome@xxxxxxxxx>
- Date: Mon, 7 Apr 2008 07:23:15 -0700 (PDT)
Hi
no, first i need to locate the record in the datatable, then change
some values in some columns (wich then automatically changes the
values in the datagrid). then i change the background-color of the row
or the cell in the grid, to indicate the change for the user. the user
always sees all the current records.
what i'm really looking for is how to get directly from datatable row
to datagrid row. this must be stored somewhere, since the grid updates
correctly and very fast when i make updates in the datatable, no
matter how the grid is sorted or even filtered. this must somehow be
done using the currency manager. i think it would be a very simple and
fast solution, if i could only find it...
i've tried using the DefaultView of the Datatable, sorted by the Key,
this works, but only as long as the user doesn't sort by some other
field.
in my desperation i even called up Microsoft asking for technical
support. The only support they have is opening a troubleticket and
paying 480$ up front. and then you don't know, when the problem will
be solved...
if someone knows a really good support hotline or chat for .net, let
me know too.
so, pleeaaaze help :)
On 7 Apr., 15:29, "Cowboy \(Gregory A. Beamer\)"
<NoSpamMgbwo...@xxxxxxxxxxxxxxxxxx> wrote:
You just want to find if the row is there and/or display the data? Try a
DataView and set a RowFilter on it.
--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA
Subscribe to my bloghttp://gregorybeamer.spaces.live.com/lists/feed.rss
or just read it:http://gregorybeamer.spaces.live.com/
*************************************************
| Think outside the box!
|
*************************************************"Ty" <tylersh...@xxxxxxxxx> wrote in message
news:cf9f705e-eb9b-4dfc-9fb3-9eb2108d4bd5@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi all
Short version of my problem:
i have a Datagrid (Flexgrid from ComponentOne) with a Datatable as
source. I need to search a row in the datatable, using a primary key
column in the datatable, and then figure out wich row this currently
is in the Datagrid. This should probably be done using the currency
manager for speed reasons.
For the live of me, i can't figure out how to locate the row very fast
in the Datagrid. Everybody is just talking about finding a record in
the datatable corresponding to a row on the datagrid, so the other way
arround.
.
- References:
- Locating a Datagrid Row from the Datasource Row, FAST
- From: Ty
- Re: Locating a Datagrid Row from the Datasource Row, FAST
- From: Cowboy \(Gregory A. Beamer\)
- Locating a Datagrid Row from the Datasource Row, FAST
- Prev by Date: How do I show dialog boxes in Csharp?
- Next by Date: Re: C# version of VB.NET "AddRange" method w/generic collection
- Previous by thread: Re: Locating a Datagrid Row from the Datasource Row, FAST
- Next by thread: Re: Locating a Datagrid Row from the Datasource Row, FAST
- Index(es):
Relevant Pages
|