|
Hi All,
Glance this code..
" Public Sub CreateNewRow()
Dim index As Integer
index = StatusGrid.Items.Count
Dim da As New SqlDataAdapter
conn.Open()
da = New SqlDataAdapter("select * from Status", conn)
'New Row Creation
da.Fill(dt)
dt.Rows.Add(dt.NewRow)
'dt.Rows.InsertAt(dt.NewRow(), index)
StatusGrid.EditItemIndex = index
dt.AcceptChanges()
StatusGrid.DataSource = dt
StatusGrid.DataBind()
conn.Close()
End Sub"
With this code, I got new row in the datagrid.
But the problem Occurs, When the pagesize exceeds.
Here I have given pagesize as 10.
Assume there is 10 rows.Now When AddNewRow button is clicked, I should get new row in next page.(Total 11 rows).10 in first page and the new row in next page.
How can I get this?
Thanks in Advance...
modified on Wednesday, November 5, 2008 4:04 AM
|
|
|
|
|
i am using Mozilla FireFox in that how to write the code for closing the web application so that the firefox is closed.i tried using window.close() but it works for IE not for FireFox...
|
|
|
|
|
Do you mean that you want to close the browser for any event ?
Just write a javascript for that you can try below one
window.opener = self;window.open('','_parent','');window.close();
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
Check My Blog
|
|
|
|
|
ya this code works for internet explore but not for firefox.Do u have any solution for it.
|
|
|
|
|
|
r u using Mozilla firefox....
|
|
|
|
|
Sorry not its not working
I searched the web and found that for FireFox 2.0 and above it won't work.FF don't allow to close the browser using javascript
If the window is opened using javscript then only it can be closed
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
Check My Blog
|
|
|
|
|
ok if get any solution tell me..
|
|
|
|
|
you can't close application
I am not a perfect programmer,but i have perfect's programmers' habits.
|
|
|
|
|
why we cant close the application...
|
|
|
|
|
hi,
i need the regular expression for the following pattern
1000-A1-A
if any boday can help it will be an honour for me.
Thanks.
|
|
|
|
|
Few weeks back, Christian Graus referred “Expresso”, a software which is to create regular expressions. You can try it.
|
|
|
|
|
Hi ,
I have five pages in my project ,i want to assign master page for this five pages through web.config. In web. config file i mention that master page file name like this
<configuration>
<system.web>
<pages master="~CommonMaster.master" >
<system.web>
<configuration>
But while running the pages master page content is coming. I have to mention anything in masterpage or contentpage ????
|
|
|
|
|
<pages master="~/CommonMaster.master">
I am not a perfect programmer,but i have perfect's programmers' habits.
|
|
|
|
|
May be the problem is master page path. I don’t think ‘~CommonMaster.master’ is valid.
|
|
|
|
|
hi..
how to select an item in datalist on double click to display it in other panel...in asp.net and vb.net.
|
|
|
|
|
use a DIV tag around the text where you want to double click, use javascript double click event handler to catch the event and open a new opup/redirect
Thanks & Regards
Pete
|
|
|
|
|
can u tell in javascript how can we handle the mouse double click event..
|
|
|
|
|
<div id="myDetail" ondblclick="Javascript:fnShowDetails(id)" > Datalist text </div>
Thanks & Regards
Pete
|
|
|
|
|
since there are 'n' number of items in it then how to check that a particular item is double clicked or single clicked....
|
|
|
|
|
you have to bind the id programatically while binding the data ti the data list
use google to find how....
Thanks & Regards
Pete
|
|
|
|
|
pls give be better resources for doing University website (University Information System/Univerity Managemeny System) urgently. Also tell me how to embed flash in asp.net ?
|
|
|
|
|
Here[^], and for the flash, here[^].
We don't care how urgent your problem is. Do your own research or pay someone to do it if you are incapable.
|
|
|
|
|
Wow you seems in a hurry!
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
...
Blog link to be reinstated at a later date.
|
|
|
|