My questions are about the same project but are two fold:
1. I have two datagrid controls setup they read from a table in a database.
When the application is ran however i have extra blank rows at the bottom of both grids how do i delete them.
2. Once this is done i need to be able to randomly select values from both datagrids the amount of values will vary but still i need to randomly select values.
Is this possible? i've seen a lot of code for randomly selecting rows but not randomly selecting cells.
attached is my code and as you can guess it will eventually be a playable keno game
Datagridview
6 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Pravin GhadgeRank #1,340 · 1.3K reputationPosted Jan 9, 2012, 6:11 PM EST
I have done some changes.
Bobby Oakes15 reputationPosted Jan 9, 2012, 6:49 PM EST
Pravin GhadgeRank #1,340 · 1.3K reputationPosted Jan 9, 2012, 7:15 PM EST
Bobby Oakes15 reputationPosted Jan 9, 2012, 8:13 PM EST
Ankit Shivnakr87 reputationPosted Jan 9, 2012, 8:25 PM EST
Buddy, I run ur application and find there is no any blank row
plz chk in pic.
Bobby Oakes15 reputationPosted Jan 9, 2012, 9:04 PM EST