|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Highlight row in a gridview after formview insertAfter the insert is done, I want to highlight the new record. I have written some code to do this which is called on the "OnItemInserted" event on the formview GridView1.DataBind() GridView1.PageIndex = 1 Dim Row As GridViewRow = GridView1.Rows(5) Row.Style("background-color") = "#FF3333" The pageindex works, but the highlighting of the row does not work. Any ideas ? Thanks Geoff Hi Geoff,
I'd probably use the built in SelectedRowStyle to highlight the row, Just select the newly inserted item in the postback. You might also want to change the highlight color do differ from the normal selected item color, also in the postback code. Grtz, Wouter van Vugt Trainer - Info Support http://blogs.infosupport.com/wouterv Or derive from GridView and implement an extra style which you can use,
e.g. this is the harder way. Grtz, Wouter van Vugt Trainer - Info Support http://blogs.infosupport.com/wouterv
new menu control is very slow
Changed property values not reflected in DesignMode Hide Menu Items Based On Roles ASP.NET 2.0 sort DataList without query again multiple itemtemplates datalist Blank page after selection Strange Results From FillEllipse PublicKeyToken, GAC registering, and multiple developers?? ASP.Net 2 Two Way Binding and DateTime Format Problem Use Enter as default key |
|||||||||||||||||||||||