Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
Password Reminder
Register
Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old August 9th, 2007, 01: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


  #2 (permalink)  
Old August 9th, 2007, 04: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

  #3 (permalink)  
Old August 9th, 2007, 04: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

  #4 (permalink)  
Old August 9th, 2007, 06: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


 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 01:39 PM



All times are GMT -4. The time now is 10:50 AM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.