|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
locate a desired rowHi,
I have a datagrid attached to a datatable and upon inserting a new record how can I move the current postion to the inserted row. For example, I already have 3 records in datagrid and first row is highlighted after adding a new row, 4th one, I would like to move the row position to the 4th row. I tried Datagrid.Rows.Find(newrow), select() no luck. Please let me know if there is an easy way to do this. Thanks in advance Hi wandii,
Try this: bindingcontext(dGrid.datasource).position = dTable.rows.count-1 hth Diego Thank you Diego - worked really nice!
May I ask another question. When a user adds a new row and has not saved it yet the existing rows state change to edit mode too. How can I disable existing row state to unchanged. Please let me know. Thanks in advance.
Byte to Chr - not correctly translated!!
GetDefaultPrinter VB.NET Windows Service Question (Timing) Saving a JPG from the web to local disk .NET Remoting User Software Settings and System Software Settings in Windows Regsitry Confusion over namespaces CSV file reading every other record... String Name to a User Control? Basic "Help" Question |
|||||||||||||||||||||||