Need a way to jump to record.
-
I'm trying to force a window to jump to a specific row in my database when I click a button. I'm using a "details" display of the table, and there is a binding navigator(supplied with the drag and drop creation of the form). An example would be (I'm using c# btw) [Parts list] 1. 2. 3. ... Select Part [2.] New Form with more details on part 2. Edit/Delete/New part I can use a modified SQL query to return just the one row, but then the add/delete/new buttons dont work because the mapping is lost to the original data. I can't imagine this is something hard to do, but I've been all over the net posting for an answer and nobody has even attempted. Any help is appreciated.
-
I'm trying to force a window to jump to a specific row in my database when I click a button. I'm using a "details" display of the table, and there is a binding navigator(supplied with the drag and drop creation of the form). An example would be (I'm using c# btw) [Parts list] 1. 2. 3. ... Select Part [2.] New Form with more details on part 2. Edit/Delete/New part I can use a modified SQL query to return just the one row, but then the add/delete/new buttons dont work because the mapping is lost to the original data. I can't imagine this is something hard to do, but I've been all over the net posting for an answer and nobody has even attempted. Any help is appreciated.
-
Hello again PyroManiak, I took a quick look at the code in the link you gave, and I noticed that the poster in that message was using the
IndexOf
function, which he said was returning -1. The way I understood his reply post with the answer was that he calledselect
but then calledIndexOf
after that. This is just speculation, since I haven't tested it yet, but I wanted to ask you if you were callingIndexOf
? If you are and it still doesn't work, could you post the rest of your code to do with loading the "edit" form? Hope that helps. Sincerely, Alexander Wiseman -
Hello again PyroManiak, I took a quick look at the code in the link you gave, and I noticed that the poster in that message was using the
IndexOf
function, which he said was returning -1. The way I understood his reply post with the answer was that he calledselect
but then calledIndexOf
after that. This is just speculation, since I haven't tested it yet, but I wanted to ask you if you were callingIndexOf
? If you are and it still doesn't work, could you post the rest of your code to do with loading the "edit" form? Hope that helps. Sincerely, Alexander WisemanI think I've got a solution. It seems to work without problem. myBindingSource.Position = variable; -- modified at 19:11 Tuesday 27th June, 2006 My older post got answered in a rather rude way, thanks for not treating me like an idiot.
-
I think I've got a solution. It seems to work without problem. myBindingSource.Position = variable; -- modified at 19:11 Tuesday 27th June, 2006 My older post got answered in a rather rude way, thanks for not treating me like an idiot.
Don't suppose you know how to capture a single attribute from a row in a datagridview do you? -- modified at 19:57 Tuesday 27th June, 2006 I'm trying things like datagridview.rows.indexof(); but it says I must give it a variable, well, if I had the variable I wouldn't need it to tell me! =P
-
I think I've got a solution. It seems to work without problem. myBindingSource.Position = variable; -- modified at 19:11 Tuesday 27th June, 2006 My older post got answered in a rather rude way, thanks for not treating me like an idiot.
PyroManiak wrote:
My older post got answered in a rather rude way, thanks for not treating me like an idiot.
I wasn't being rude. I mistook that initial vagueness of your initial post as betraying a level of understanding below that which you had. If you thought it rude of me to suggest buying a book on that assumption then there isn't much more I can do.
Scottish Developers events: * .NET debugging, tracing and instrumentation by Duncan Edwards Jones and Code Coverage in .NET by Craig Murphy * Developer Day Scotland: are you interested in speaking or attending? My: Website | Blog
-
PyroManiak wrote:
My older post got answered in a rather rude way, thanks for not treating me like an idiot.
I wasn't being rude. I mistook that initial vagueness of your initial post as betraying a level of understanding below that which you had. If you thought it rude of me to suggest buying a book on that assumption then there isn't much more I can do.
Scottish Developers events: * .NET debugging, tracing and instrumentation by Duncan Edwards Jones and Code Coverage in .NET by Craig Murphy * Developer Day Scotland: are you interested in speaking or attending? My: Website | Blog
I'm sorry, its probably just me. It is the end of the quarter and this project was dumped in my lap as a last minute deal and it wasn't planned out other then some oddball requirements. As far as a book goes, I'm been waiting to get a book on ADO.net 2.0 (Pro ADO.NET 2.0 - Sahil Malik) but they wont budget anything else until next month when the new quarter kicks in. This is what happens when people find out a hardware engineer also has background in software development.