By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,234 Members | 1,908 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,234 IT Pros & Developers. It's quick & easy.

How to find the total row count of datagrid using column name in

P: 2
Protected Sub invokePagination(ByVal table As DataTable)
'CallPagination() As PagingControlDTO
If table.Rows.Count > 0 Then
Me.DataGridPaging1.Visible = True
Me.DataGridPaging2.Visible = True
PgCntrl.RecordCount = CType(table.Rows(0)(12), Int64)PgCntrl.CurrentPage = CInt(ViewState("CurrentPage"))
If PgCntrl.CurrentPage = 0 Then
PgCntrl.CurrentPage = 1
End If
PgCntrl.isPrevClicked = False
PgCntrl.isNextClicked = False
PgCntrl.DisplaySummary = True
Me.DataGridPaging1.CallPagination =PgCntrl
Me.DataGridPaging2.CallPagination = PgCntrl

End If
End Sub

The code which is underlined is to be replaced.
Instead of this I want to use column name to get the total count , since it contain the total count.

Column Name is "TOTALROWCOUNT"
Apr 27 '12 #1
Share this Question
Share on Google+
1 Reply

P: 2
Please help in resolving this problem. Please help..

Apr 27 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.