Buy Questpond's video subscriptions on
huge discount
.
Online: 11913
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
>
Regular Expressions
>
Loading ...
Fill Gridview using tab [Resolved]
Posted by
Anweshabhowmick
under
Regular Expressions
on 5/12/2011 |
Points: 10
| Views : 3846 | Status :
[Member]
| Replies : 10
Write New Post
|
Search Forums
|
Resolved Posts
|
Un Answered Posts
|
Forums Home
I have a gridview and a textbox.......After putting some no when i press tab the Gridview will fill.....without pressing any button
Is it possible.....pls any one can help...
It is very urgent....
Anwesha
[Resolved]
Reply
|
Reply with Attachment
Alert Moderator
Responses
Posted by:
Lakn2
on: 5/12/2011
[Member]
Starter
|
Points: 50
0
<asp:Textbox id="tb1" runat="server" AutoPostBack="true" onTextChaneged="tb1_TextChanged">
protected void tb1_TextChanged(object sender,EventArgs)
{
sqldataadapter da=new sqldataadapter("select * from tablename where colname="+tb1.text,cn);
datatable dt=new datatable();
da.fill(dt);
gridview1.datasource=dt;
gridview1.databind();
}
i hope it helps you
Thanks&Regards
LakshmiNarayana Nalluri.
Anweshabhowmick
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Prabhakar
on: 5/12/2011
[Member]
[MVP]
Starter
|
Points: 50
0
check it u set it or not txtpono property AutoPostBack=True . . check it . .
Best Regard's
Prabhakar
Anweshabhowmick
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Prabhakar
on: 5/12/2011
[Member]
[MVP]
Starter
|
Points: 25
0
hi Anweshabhowmick
i think Lkn2 say right . . u write code on TextBox1_TextChanged event . .
Best Regard's
Prabhakar
Anweshabhowmick
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Anweshabhowmick
on: 5/12/2011
[Member]
Starter
|
Points: 25
0
This Code is not working
Thanks For posting
Anweshabhowmick
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Prabhakar
on: 5/12/2011
[Member]
[MVP]
Starter
|
Points: 25
0
Hi Anweshabhowmick
u run ur code Debug. . and firstly check ur texChanged Event Fired or not . . Then check where's the mistake to fill ur gridview . . Show ur code . .
Best Regard's
Prabhakar
Anweshabhowmick
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Anweshabhowmick
on: 5/12/2011
[Member]
Starter
|
Points: 25
0
My event is not fired.........
Here is the code...
private void loadgridquot()
{
bl.Connection_String = _connection_str;
bl.PO_No = txtpono.Text.ToString();
DataSet ds = new DataSet();
try
{
ds = bl.Search_PO_Detail_ByPONo();
if (ds.Tables[0].Rows.Count > 0)
{
gvpodetls.DataSource = ds;
gvpodetls.DataBind();
}
else
{
gvpodetls.DataSource = null;
gvpodetls.DataBind();
}
}
catch (Exception exx)
{
ds.Dispose();
}
finally
{
ds.Dispose();
}
}
protected void txtpono_TextChanged(object sender, EventArgs e)
{
loadgridquot();
}
Anweshabhowmick
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Anweshabhowmick
on: 5/12/2011
[Member]
Starter
|
Points: 25
0
Thank u so much.......U solved my huge problem............Thank u so much........
Anwesha
Anweshabhowmick
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Anweshabhowmick
on: 5/12/2011
[Member]
Starter
|
Points: 25
0
Can u help me Nested grid with adding new row in nested grid.....
Anweshabhowmick
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Ndebata
on: 5/12/2011
[Member]
Starter
|
Points: 25
0
Hi
Take a look at the attached sample.
Thanks,
Debata
Download source file
Anweshabhowmick
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Prabhakar
on: 5/12/2011
[Member]
[MVP]
Starter
|
Points: 25
0
It's ok . .
yeh i will try it . .
Check these link it's help us u . .
http://www.codeproject.com/KB/webforms/EditNestedGridView.aspx
http://www.codeproject.com/KB/aspnet/SkinSample.aspx
http://www.scribd.com/doc/13729803/Nested-GridView-With-ASPnet-C
http://www.codeproject.com/KB/aspnet/ExtendedGridView.aspx
Best Regard's
Prabhakar
Anweshabhowmick
, 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 ...