Re: Locating a Datagrid Row from the Datasource Row, FAST

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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.

.



Relevant Pages

  • Re: Locating a Datagrid Row from the Datasource Row, FAST
    ... i have a Datagrid with a Datatable as ... and then figure out wich row this currently ... Well, 30k of rows is a HUGE amount, you should only load thoe you are ... I recommend you to use some paging in the server. ...
    (microsoft.public.dotnet.languages.csharp)
  • Add custom property at runtime to an interface
    ... I've got an business-object wich has a property Value wich will retreive the ... the datagrid need some published properties to show in the grid. ... retreiving and storing data to and from my object. ...
    (microsoft.public.dotnet.framework.clr)
  • Add custom property at runtime to an interface
    ... I've got an business-object wich has a property Value wich will retreive the ... the datagrid need some published properties to show in the grid. ... retreiving and storing data to and from my object. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Problem detecting deletion in dataset (in datagrid)
    ... I have set at dataset as source for my datagrid. ... except for the rows wich i have deleted. ... dataGrid handle the deletin wrong, so i cant detect deletion or have I ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Problem detecting deletion in dataset (in datagrid)
    ... I have set at dataset as source for my datagrid. ... except for the rows wich i have deleted. ... dataGrid handle the deletin wrong, so i cant detect deletion or have I ...
    (microsoft.public.dotnet.framework.aspnet.datagridcontrol)