Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
-
.Recordsaffected or @@RowCount
Is there a way in native ColdFusion, without going through a SQL Server stored procedure, to get the number of records affected by an UPDATE stmt?... -
CFOUTPUT QUERY rowcount = 0
Hello, I have a query which return 0 row. I have a CFOUTPUT QUERY which try to output my query. Coldfudion enter in the CFOUTPUT once EVEN if my... -
@@rowcount in trigger
Hi, I read in a book which suggested to check the @@rowncount inside the trigger if it is =0 then return if @@rowncount=0 Return I am wondering... -
Jack Li #2
Re: rowcount
You may want to use:
DataTable.Rows.Count
Regards,
Jack Li
MVP (ASP.NET)
"et" <eagletender2001@yahoo.com> wrote in message
news:u12J3ExvFHA.596@TK2MSFTNGP12.phx.gbl...> How can I get a count of rows in a datagrid?
>
Jack Li Guest
-
Elton Wang #3
Re: rowcount
datagrid.Items.Count
HTH
"et" <eagletender2001@yahoo.com> wrote in message
news:u12J3ExvFHA.596@TK2MSFTNGP12.phx.gbl...> How can I get a count of rows in a datagrid?
>
>
Elton Wang Guest
-
Scott Mitchell [MVP] #4
Re: rowcount
Jack Li wrote:
This assumes that you are binding a DataTable to a DataGrid. But if> You may want to use:
> DataTable.Rows.Count
you're binding a DataReader this approach won't work. (If you're
binding an Array or other collection, you can use similar code - just
utilize the Count property.)
A more flexible approach is, *after* you bind the data to the DataGrid,
check out the DataGridID.Items.Count property.
hth
> Regards,
> Jack Li
> MVP (ASP.NET)
>
> "et" <eagletender2001@yahoo.com> wrote in message
> news:u12J3ExvFHA.596@TK2MSFTNGP12.phx.gbl...
>>>>How can I get a count of rows in a datagrid?
>>
>
>
--
Scott Mitchell [ASP.NET MVP]
[email]mitchell@4GuysFromRolla.com[/email]
[url]http://www.4GuysFromRolla.com/ScottMitchell[/url]
Scott Mitchell [MVP] Guest



Reply With Quote

