Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
Thunder #1
How to get first & Last visible Row in VB?
In C#,I know the way to get:
void EnsureRowVisible(DataGrid grd, int Row)
{
int FirstVisibleRow = (int)grd.GetType().GetField("m_irowVisibleFirst",
BindingFlags.NonPublic|BindingFlags.GetField
|BindingFlags.Instance).GetValue(grid);
int LastVisibleRow = (int)grd.GetType().GetField("m_irowVisibleLast",
BindingFlags.NonPublic|BindingFlags.GetField|Bindi ngFlags.Instance).GetValue
(grid);
//grid is the visible datagrid control
}
But,how it be done in the Vb.Net ?
Thunder Guest
-
Edits not visible
I successfully edited and published a page from my online website. The internal browser continues to load the old page. When viewing the site via... -
ItemTemplate visible
Hi there! This works fine: <asp:Panel Runat=server Visible=<%# DataBinder.Eval (Container.DataItem,"Active") %>>b</asp:Panel> With this the... -
class is not visible
Hi, I want to use a user control on my page. I want to reference to the control class from the page’s code-behind. I registered the control:... -
Non-visible control
I want to create a custom webcontrol similar to the SqlConnection control, in that it is not actually drawn on the form. When you drop the control... -
Text not visible
You're the man Mel Brown! The reset character and reset paragraph fixed it. Thanks so much for your time-I really appreciate the fix! Thanks... -
Ramnath #2
Re: How to get first & Last visible Row in VB?
dim Trow as integer
dim Crow as integer
trow = grid1.FirstDisplayedScrollingRowIndex
crow = grid1.currentrow.index
....
do changes to the grid....refresh data etc...
...
' Now reset the position
grid1.currentcell = grid1.item(0,crow)
grid1.FirstDisplayedScrollingRowIndex = trow
The postions remains as it was earlier.Ramnath Guest



Reply With Quote

