GEFN way to get total row count with a LinqDataSource

Jan 20, 2010 at 7:53 PM
Edited Jan 20, 2010 at 8:07 PM

All --

FYI, here is a GEFN way to get total row count with a LinqDataSource with the most excellent CoolControls GridView.

1. Setup a LinqDataSource and a Cool grid as noted at the following link...

http://ideasparks.codeplex.com/Thread/View.aspx?ThreadId=81205

2. Handle the Selected event of the LinqDataSource as follows...

protected void SsbiExViewLinqDataSource_Selected(object sender, LinqDataSourceStatusEventArgs e)
{
    this.RowCountLabel.Text = e.TotalRowCount.ToString();
}

3. Done.

(This could probably be integrated into the source some way and if I get a chance, and if it is not beyond me, and if it truly makes sense, then I will try.)

HTH.

Thank you.

-- Mark Kamoski

 

Coordinator
Jan 20, 2010 at 10:01 PM

Hi Mike,

Thank you for this post. I really appreciate all your inputs. :-)

- John