By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,806 Members | 1,352 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,806 IT Pros & Developers. It's quick & easy.

Datagrid Insert new

P: n/a
Hi Everybody,

I have a datagrid and I am using sqlcommandbuilder for update and insert
of the data.

I have two questions related to insert new row in datagrid.
When I get to the new row how can I make first column(which is my
primary kay) filled with some value??
Second, how can I add new row to the datagrid by using the button on the
bottom. What is the even for the datagrid.

Thank you
Schapopa


*** Sent via Developersdex http://www.developersdex.com ***
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
Hi,

Take a look at the datacolumn defaultvalue and autoincrement
properties

http://msdn.microsoft.com/library/de...valuetopic.asp

http://msdn.microsoft.com/library/de...ementtopic.asp

http://msdn.microsoft.com/library/de...tseedtopic.asp

http://msdn.microsoft.com/library/de...tsteptopic.asp

Ken
----------------------
<schapopa> wrote in message news:%2****************@TK2MSFTNGP14.phx.gbl...
Hi Everybody,

I have a datagrid and I am using sqlcommandbuilder for update and insert
of the data.

I have two questions related to insert new row in datagrid.
When I get to the new row how can I make first column(which is my
primary kay) filled with some value??
Second, how can I add new row to the datagrid by using the button on the
bottom. What is the even for the datagrid.

Thank you
Schapopa


*** Sent via Developersdex http://www.developersdex.com ***
Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.