I want to pick out a specific row in my UltraWebGrid based on the value in a column. That column corresponds to the primary key of the SQL database table the grid is databound to. I think I would do that with the this reference:
UltraWebGrid1.Rows.FromDataKey()
My question is what exactly do I put into the parentheses for the FromDataKey method? I know it can't simply be the string value of the primary key. I have to pass some sort of object array. I'm not sure how that object array is built.
Try UltraWebGrid1.Rows.FromDataKey(new object[{"myvalue"})
This example doesn't appear exactly correct, the parentheses don't match up. I'm going mad trying to figure this out and of course, there's no example in the knowledge base or documentation that I can find. Can someone provide this in vb.net in correct form?
Oops. The line I posted before is not correct; I must have changed it by mistake before posting.. it should read new object[{"myvalue"} for c#
In VB.NET it should be new object(){"myvalue"} the difference being that VB.NET uses parenthesis to index into arrays while C# uses square brackets.
*EDIT* - Actually, it seems that the forum software does not like a close square bracket right after a open square bracket. It should read new object[ ]{"myvalue"}. I added a space in between the two square brackets so that it shows correctly.