Buy Questpond's video subscriptions on
huge discount
.
Online: 11050
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Forums
>
ASP.NET
>
Loading ...
I have problem in gridview selected Row
Posted by
Nuwan
under
ASP.NET
on 5/8/2012 |
Points: 10
| Views : 2017 | Status :
[Member]
| Replies : 4
Write New Post
|
Search Forums
|
Resolved Posts
|
Un Answered Posts
|
Forums Home
Dear All,
I bind a sql table in gridview, I include in gridview Command button field,
Now i want to if I select 5 rows in that gridview give me a message Like "YOU CAN SELECT 5 ROWS ONLY".
How can i do that Please help me.
Thank you.
Rathnayake
Reply
|
Reply with Attachment
Alert Moderator
Responses
Posted by:
Prabhakar
on: 5/8/2012
[Member]
[MVP]
Starter
|
Points: 25
0
Hi Nuwan ,
if u want to select 5 or lot's of item in gridvew . . so u use Multiple Selection in Gridview with Check boxes .
Go with this link and Read it . .
http://www.codeproject.com/Articles/14437/Extending-GridView-by-allowing-Multiple-Selections
Best Regard's
Prabhakar
Nuwan
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Nuwan
on: 5/8/2012
[Member]
Starter
|
Points: 25
0
I want to if I selected 5 rows in gridview enable false.
Rathnayake
Nuwan
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Edwin
on: 5/9/2012
[Member]
Starter
|
Points: 25
0
Please Get the Selected Row count and Check using if loop and display the message
Nuwan
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Edwin
on: 5/9/2012
[Member]
Starter
|
Points: 25
0
if (datagrid.SelectedRows.Count > 5)
MessageBox.Show("U Not able to select More than 5 row");
Nuwan
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Login to post response
Latest Posts
How to get the exact property name while getting error
(0)
PDB file is not showing Line Number in dot net application hosted on server
(0)
Both Strings morethan 5 letters in length end of the words one vowel and one consonent is different
(0)
how to check Any adjacent letters transposed between two strings(ex: JOHN, JHON)
(1)
can't receive data after success login ?
(1)
Implement Multi-Tenant in Azure Logic Apps
(0)
Why ASP.Net Core 7.0 Web API showing as Connection refused?
(0)
Iterating over columns of dataframe and print as rows in Python Django
(0)
More ...