Click here to Skip to main content
15,925,723 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problem instantiating form classes created in other C# project Pin
Jacobus0114-May-09 4:08
Jacobus0114-May-09 4:08 
QuestionHow to enable tollbar in windows taskbar Pin
Radzivil Vladimir14-May-09 2:25
Radzivil Vladimir14-May-09 2:25 
AnswerRe: How to enable tollbar in windows taskbar Pin
Henry Minute14-May-09 3:38
Henry Minute14-May-09 3:38 
QuestionLinq To Xml help Pin
Miroslav8814-May-09 2:00
Miroslav8814-May-09 2:00 
Questionremoting security/permissioning exception... Pin
devvvy14-May-09 1:55
devvvy14-May-09 1:55 
QuestionHow to Create Crystal Report into Visual Studio 2008 (Windows Form) application? Pin
btough14-May-09 1:41
btough14-May-09 1:41 
QuestionPage indexing in c# Pin
Sajjad Leo14-May-09 1:39
Sajjad Leo14-May-09 1:39 
AnswerRe: Page indexing in c# Pin
musefan14-May-09 2:35
musefan14-May-09 2:35 
well you could load all your rows into a datatable or something, then you create a bunch of buttons to act as page numbers, or a drop down list, based on the number of rows in the datatable.

So if you have 128 rows you could do...

int numberOfPages = numRows % 25 == 0 ? numRows / 25 : numRows / 25 + 1;


then on each button click, you load the first 25 result starting at a number obtained by...

int startRowNumber = (pageNumber - 1) * 25;



Alternatively you can get the startRowNumber and search you datasource for each page load. Depending on what your data source is will depend how you could do this. Some databases have functionality to specify a results count and start value. But you will have to look into that yourself

Life goes very fast. Tomorrow, today is already yesterday.

Questionnavigation among forms in windows application Pin
Aankur Bbansal14-May-09 1:07
Aankur Bbansal14-May-09 1:07 
AnswerRe: navigation among forms in windows application Pin
Samer Aburabie14-May-09 1:14
Samer Aburabie14-May-09 1:14 
AnswerRe: navigation among forms in windows application Pin
Anubhava Dimri14-May-09 1:35
Anubhava Dimri14-May-09 1:35 
Questionc# BHO Issues Pin
svt gdwl14-May-09 1:05
svt gdwl14-May-09 1:05 
AnswerRe: c# BHO Issues Pin
Dave Kreskowiak14-May-09 4:18
mveDave Kreskowiak14-May-09 4:18 
QuestionSocket Error Pin
mahesvs14-May-09 0:49
mahesvs14-May-09 0:49 
AnswerRe: Socket Error Pin
Rob Philpott14-May-09 0:54
Rob Philpott14-May-09 0:54 
GeneralRe: Socket Error Pin
Neezha15-May-09 3:26
Neezha15-May-09 3:26 
AnswerRe: Socket Error Pin
Programm3r14-May-09 1:08
Programm3r14-May-09 1:08 
QuestionAssembly probing - how to instruct to look under bin folder instead of GAC? Pin
devvvy14-May-09 0:49
devvvy14-May-09 0:49 
AnswerCheck out Pin
Ennis Ray Lynch, Jr.14-May-09 2:45
Ennis Ray Lynch, Jr.14-May-09 2:45 
GeneralRe: Check out Pin
devvvy14-May-09 2:49
devvvy14-May-09 2:49 
GeneralRe: Check out Pin
Ennis Ray Lynch, Jr.14-May-09 2:50
Ennis Ray Lynch, Jr.14-May-09 2:50 
GeneralRe: Check out Pin
devvvy14-May-09 2:55
devvvy14-May-09 2:55 
GeneralAnother common solution Pin
Ennis Ray Lynch, Jr.14-May-09 3:00
Ennis Ray Lynch, Jr.14-May-09 3:00 
GeneralRe: Another common solution Pin
devvvy14-May-09 3:07
devvvy14-May-09 3:07 
GeneralRe: Check out Pin
devvvy14-May-09 4:59
devvvy14-May-09 4:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.