15,886,199 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Wajid Khaksar (Top 13 by date)
Wajid Khaksar
15-Dec-16 21:34pm
View
prompt is executed i.e copy/paste not allowed after pressing ctrl+v but data also paste in datagridview text field using your code. its not fruitful. kindly give a authentic solution for it
Wajid Khaksar
27-Sep-16 16:10pm
View
i bind my girview in textboxchanged event sir
Wajid Khaksar
25-Sep-16 11:00am
View
this is the answer of my question sir Thank you.
for(int i=0;GridView1.Rows.Count>i;i++)
{
GridView1.Rows[i].Visible = false;
}
Wajid Khaksar
25-Sep-16 7:02am
View
Deleted
in asp
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="FilterForGrid.WebForm1" %>
<!DOCTYPE html>
Wajid Khaksar
25-Sep-16 6:58am
View
in aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="FilterForGrid.WebForm1" %>
<!DOCTYPE html>
in cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;
namespace FilterForGrid
{
public partial class WebForm1 : System.Web.UI.Page
{
SqlConnection con = new SqlConnection(@"Data Source=(LocalDB)\v11.0;AttachDbFilename=I:\Project Lab\FilterForGrid\FilterForGrid\App_Data\Database1.mdf;Integrated Security=True");
protected void Page_Load(object sender, EventArgs e)
{
string query = "Select * From NewRecord";
SqlCommand com = new SqlCommand(query, con);
DataTable dt = new DataTable();
SqlDataAdapter da = new SqlDataAdapter(com);
da.Fill(dt);
if(dt.Rows.Count>0)
{
GridView1.DataSource = dt;
GridView1.DataBind();
GridView1.Visible = false;
}
}
protected void GridView1_RowCreated(object sender, GridViewRowEventArgs e)
{
if(e.Row.RowType==DataControlRowType.Header)
{
GridViewRow HeaderGridRow = new GridViewRow(0, 0, DataControlRowType.Header, DataControlRowState.Insert);
TableCell HeaderCell = new TableCell();
HeaderCell.Text = "new one";
HeaderCell.ColumnSpan = 1;
HeaderGridRow.Cells.Add(HeaderCell);
HeaderCell.Visible = true;
HeaderCell = new TableCell();
HeaderCell.Text = "new two";
HeaderCell.ColumnSpan = 1;
HeaderGridRow.Cells.Add(HeaderCell);
HeaderCell.Visible = true;
// e.Row.Cells[1].Controls.Add(tb);
HeaderCell = new TableCell();
HeaderCell.Text = "new three";
HeaderCell.ColumnSpan = 1;
HeaderGridRow.Cells.Add(HeaderCell);
HeaderCell.Visible = true;
HeaderCell = new TableCell();
HeaderCell.Text = "new four";
HeaderCell.ColumnSpan = 1;
HeaderGridRow.Cells.Add(HeaderCell);
GridView1.Controls[0].Controls.AddAt(0, HeaderGridRow);
HeaderCell.Visible = true;
}
}
}
}
Wajid Khaksar
8-Sep-16 9:56am
View
<asp:DropDownList ID="dd_pages" runat="server" AutoPostBack="true"
this is my dropdown row selection i.e aspx Format code
OnSelectedIndexChanged="dd_pages_SelectedIndexChanged" CssClass="dd_page">
<asp:ListItem Text="10" Value="1">
<asp:ListItem Text="25" Value="2">
<asp:ListItem Text="50" Value="3">
<asp:ListItem Text="75" Value="4">
<asp:ListItem Text="100" Value="5">
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" CssClass="gridview" OnPageIndexChanging="GridView1_PageIndexChanging" OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
<PagerSettings FirstPageText="" LastPageText="" NextPageText="" Mode="NextPreviousFirstLast" PreviousPageText="" />
<columns>
<%-- <asp:BoundField DataField="" HeaderText="" />--%>
and this is selected index code against gridview
protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
GridView1.PageIndex = e.NewPageIndex;
}
plz help me about this matter
Wajid Khaksar
22-Nov-15 12:51pm
View
sir i debugged it. The image name with extension exist in url
Wajid Khaksar
30-May-13 5:19am
View
Thanks a lot Sir.
Wajid Khaksar
30-Apr-13 6:48am
View
Lot of thanks Sir, i found solution here.
Wajid Khaksar
5-Apr-13 16:07pm
View
Deleted
no body know about this. so sad....
Wajid Khaksar
26-Mar-13 16:07pm
View
GO TO HELL
Wajid Khaksar
7-Mar-13 10:18am
View
Deleted
value are not update in dropdownlist from database table (SchoolClass)...when page load..
that is Problem.
Wajid Khaksar
20-Feb-13 16:09pm
View
Thanks a lot sir.
Show More