or
public bool SetCurrentRow(DataRow r, string fieldname, object val) { if ((this.Columns.FindByDataField(fieldname) == null || r[fieldname] == null)) { string m = string.Format("{0} failed. Grid columns or row columns did not contain '" + fieldname + "'." , "SetCurrentGridRow"); throw new ApplicationException(m); } System.Diagnostics.Debug.WriteLine(""); System.Diagnostics.Debug.WriteLine("Looking for: "+ r[fieldname].ToString()); foreach (GridViewRowInfo v in this.Rows) { if (v.DataBoundItem is DataRowView) { if ((v.DataBoundItem as DataRowView).Row != null) { DataRow row = (v.DataBoundItem as DataRowView).Row; System.Diagnostics.Debug.WriteLine(row[fieldname]); if (row[fieldname].Equals(val)) { this.CurrentRow = v; this.GridElement.Update(false); return true; } } } } return false; } |
Download Telerik CAB Enabling Kit Beta 1
You can find more information on the Can Enabling Kit on our CAB Support page.
The beta of the Telerik CAB Enabling Kit includes the early bits of the upcoming Q2 2007 RadControls for WinForms suite. It comes with a Finance Application modeled after Microsoft's WPF WoodGrove Finance Application.
Since this is the first beta of the CAB Kit we expect some glitches, and your comments and opinions will be much appreciated. Feel free to post all ideas, suggestions and feedback in this Forum. The most active beta users will be awarded with up to 5,000 Telerik Points.
Resources