View Single Post
Old July 7th, 2005, 02:58 PM
demivolt demivolt is offline
Authorized User
Join Date: Aug 2004
Location: memphis, tn, .
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts

Getting closer. I tried your suggested syntax --

 Me.labTest.Text = dataset.Tables(<table name or index>).Rows.Count

This returns ALL of the records in the table [tables(0)]. I am
wanting a count of only those records going to my DataGrid, i.e. the DataSource of my grid. The only records show up on my grid are based on a criterion triggered by selection from a dropdownList, which sets up a "where" clause in my SQL Select string.

I am thinking that I may be confused about what data is available during a preRender event. Can controls not be created and inserted on a form "on-the-fly" during this even????