int pos = Convert.ToInt32(dw1.Describe(colname + ".y")); pos = pos - 40; dw1.Modify("DataWindow.VerticalScrollPosition='"+pos.ToString()+"'");