René Hartman
2011-04-08T13:39:53Z
Hi All,

Im new here:
My name is René Hartman (37) from Holland...
I program a lot of years now, and with some components from 10Tec too.
First iGrid for VB6 and now the iGrid (3.0) for .Net, i like them.
The .Net component is hard to learn... There changes a lot of stuff.

I have a question.
Whats the best way now in the .Net.

In VB6 i use this....
lRow = iGrid.FindSearchMatchRow(lCol, sSearchfor)
But how do i get this in .Net.

Sorry, i don't have a rowkey, so i can't use the .SetCurCell(rowkey, col)
I fill the Grid with the FillWithData and don't now how to fill the rowkey in the sametime.

Already thanx for the reaction.

Bye,
René
Igor/10Tec
2011-04-09T08:22:30Z
iGrid.NET's FillWithData doesn't provide you with the ability to use a filed as row key, but most likely we could use your task using another approach in iGrid.NET. Can you tell us what logic should be implemented in this part of your app? Then we could suggest another solution with iGrid.NET.
René Hartman
2011-04-11T08:42:32Z
Thanks for your reaction.

I must fill a grid with data, Drawingnumber, Drawingname etc. and ID_DrawingNR in a Visible = false col.
Now is the task, to find a drawing with his ID number, and to recieve the Rownumber.

I hope u could suggest a solution.
Igor/10Tec
2011-04-11T11:35:14Z
You could use the built-in SearchAsType object with the 'Custom' match rule to find the required row (there is a sample of that in the documentation in the manual), but maybe the easiest way to solve your task is just to implement a simple loop by rows in which you find the required ID. If you have a grid with many rows (up to several thousands or even more), we would recommend that you sort your grid by the ID column and use the binary search instead.

In any case, thank you for your comment regarding iGrid.NET's FillWithData. It is a good suggestion for the future releases - to add a 'row key field' parameter to it.
René Hartman
2011-04-12T08:30:31Z
Ok Thanks, i will look for it.

I had seen the sample, but i not complete understand that function, so i will try try try and try :D


ps I hope by next updates, you will look for the FindSearchMatchRow to put that function in the .Net version, that was easy to use.
Igor/10Tec
2011-04-12T14:34:01Z
Originally Posted by: René Hartman 


I had seen the sample, but i not complete understand that function, so i will try try try and try :D



The idea was to use the existing SearchAsType object without doing a loop from your side, but in fact a simple loop is a much simpler solution :)

Originally Posted by: René Hartman 


ps I hope by next updates, you will look for the FindSearchMatchRow to put that function in the .Net version, that was easy to use.



FindSearchMatchRow in iGrid ActiveX is in fact a wrapper for a loop that enumerates all rows and tries to find what you asked. It is a very simple thing - that's why we didn't implement it in iGrid.NET.

Can you tell us a good strong reason why we would need this method?