animate the position of the button according to the scrolling inside datagrid!
Hi! My question is, how can I detect the position of the scroll bar, so that when I scrool down my buttons would react to the corect position of the lines, so that at the top they would dissapear!
Attachment | Size |
---|---|
script.jpg | 70.79 KB |
Comments
yessssssss
I've found
VisibleRowsCount = (BitmapLister.table.Height-24)/30
Hint
intRows = dataGridView1.Rows.GetRowCount(DataGridViewElementStates.Displayed);
intBottom = intRows + intTop - 1;
is giving error also
solved partially
works but there is no LastDisplayedScrollingRowIndex
I thought to use http://msdn.microsoft.com/en-us/library/system.windows.forms.datagrid.vi...
print BitmapLister.table.VisibleRowCount
but it gives error!
PLEASE HELP!!!
one more idea
I've found some extra info! How to implement it in maxscript?
--on table SelectionChanged senderArg arg do
on table Scroll ScrollViewer.ScrollChanged ScrollChangedEventArgs
private void cbdg1_ScrollChanged(object sender, ScrollChangedEventArgs e)
{
double d = e.VerticalOffset;
// Here you can use the vertical-offset's value.
}
some external info which could help those who want help me!!!
http://msdn.microsoft.com/en-us/library/system.windows.forms.datagrid.vi...
http://stackoverflow.com/questions/658258/wpf-datagrid-check-visible-rows
http://stackoverflow.com/questions/5979827/count-the-number-of-visible-r...
http://asifhuddani.wordpress.com/2010/05/24/displayedrowcount-of-datagri...
http://bytes.com/topic/c-sharp/answers/580313-determine-visible-row-winf...
I think i know how to do it, but your help is needed!
Look! Let, say, I have the line order, and 30 px for every line!
I just need a callback which detects that datagrid is scrolling items! and during this scrolling we need to detect just which lines are visible! Everything else I will try by myself!
tell me please!
tell me please at least where to search?
The height of a row is 30px! may be to detect smth like which line is visible!