Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 9th, 2007, 12:12 AM
Registered User
 
Join Date: Aug 2007
Location: Chennai, Tamil, India.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to rdinesh1975 Send a message via AIM to rdinesh1975
Default about grid view sorting

I have a timesheet screen. we have to enter the time sheet with in a grid. i am using data source control. if there is no record, i dynamically create one data row and bind into the grid. In this situation, if i give sorting equal to true. Error has come for sorting is not allowing this situation. i am using databound,prerender,databinding,rowediting,rowdele ting,rowupdating events. Which event I have to use sorting property equal to true.

Please kindly reply immtly.

With regards

dinesh


 
Old August 9th, 2007, 03:49 AM
Registered User
 
Join Date: Mar 2007
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I can't understand why you do that all,If you do this to show some thing while there is no result returened then you should use gridview's property "EmptyDataText"

Thanks

 
Old August 9th, 2007, 03:55 AM
Registered User
 
Join Date: Aug 2007
Location: Chennai, Tamil, India.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to rdinesh1975 Send a message via AIM to rdinesh1975
Default

thanks for sending reply....

if i have no record, i have to display no record found into the grid. and by default footer part also will display in the grid. throu footer only i enter the record. if am not create the new row dynamically, there is no grid found in the screen

kindly reply

dinesh

 
Old August 9th, 2007, 05:27 AM
Registered User
 
Join Date: Mar 2007
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can display 'No record found' message in gridview while datasource does't return any recod.
1-Set 'Empty data text' property of gridview
or
2-Write Message in 'empty data tamplate' of gridview






Similar Threads
Thread Thread Starter Forum Replies Last Post
Help Grid View Drop Down List, view all jskinner123 ASP.NET 2.0 Basics 0 November 25th, 2007 06:25 PM
client side sorting and paging in data grid prankur ASP.NET 1.0 and 1.1 Basics 1 February 3rd, 2006 12:05 PM
client side sorting and paging in data grid prankur ASP.NET 1.0 and 1.1 Professional 1 February 3rd, 2006 12:00 PM
Data grid sorting on page 707 matejx BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 6 December 2nd, 2005 05:43 AM
Sorting in Data Grid matt.fields ASP.NET 1.0 and 1.1 Basics 0 October 21st, 2003 12:39 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.