Phesvitinee
New Member
Can someone please tell me why my DataGrid_ItemSelected and Paging methods are not firing on the Portal Module (QuickStart sample code) not the IBS Portal? I tried the same code just the ASPX and VB files and it worked just fine. But when i converted it into a Control it doesnt work anymore. Same with the onPageIndexChanged. I really need your help on this... thanks a lot!!!! SOmeone told me about initializing the controls but i have no idea where to start. <BR><BR><asp
ataGrid <BR>id="myDataGrid1" <BR>AutoGenerateColumns="False" <BR>AllowPaging="True" <BR>PageSize="10" <BR>PagerStyle-Mode="NumericPages" <BR>PagerStyle-HorizontalAlign="Left" <BR>onPageIndexChanged="pageGrid" <BR>DataKeyField="emp_id" <BR>BorderColor="black" <BR>BorderWidth="1" <BR>CellPadding="3" <BR>Font-Name="Verdana" <BR>Font-Size="8pt" <BR>OnItemCommand="AddBtn_Click" <BR>runat="server"> <BR><BR><Columns> <BR><BR><BR><asp:ButtonColumn <BR>ButtonType="PushButton" <BR>Text="Add" <BR>CommandName="AddBtn" <BR>Visible="True"/> <BR><BR><BR><BR></Columns> <BR><BR></asp
ataGrid> <BR><BR>VB: <BR><BR><BR>Public Sub pageGrid( s as Object, e as DataGridPageChangedEventArgs ) <BR><BR>lblMessage.Text = "" <BR>myDataGrid1.CurrentPageIndex = e.NewPageIndex <BR>BindData <BR><BR><BR>End Sub <BR><BR><BR>Public Sub AddBtn_Click(ByVal sender As Object,ByVal e As DataGridCommandEventArgs) <BR><BR><BR>if (e.CommandName = "AddBtn") Then <BR>------ Execute Stored Proc --------- <BR>End if <BR><BR>Binddata <BR>End Sub <BR>

