Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Function Syntax from VB.NET to C# 1

Status
Not open for further replies.

net123

Programmer
Oct 18, 2002
167
US
I am trying to change the following code from VB.NET to C# but can't seem to get the right syntax:

Protected Function GetIndex() As String
ItemIndex += 1
Return (dgrid.CurrentPageIndex * dgrid.PageSize) + ItemIndex
End Function
[/blue]
Your help will be greatly appreciated it.
 
Try this...

protected string GetIndex()
{
ItemIndex++;
return StringType.FromInteger((dgrid.CurrentPageIndex * dgrid.PageSize) + ItemIndex);
}

-Kris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top