|
Rank: Newbie Groups: Member
Joined: 8/5/2008 Posts: 9
|
I am trying to use the grid control for the frist time. I have everything working fine exceot when I go into the edit mode, I don't get a textbox. I am using the "textboxColumn" type but when I click the "edit" command, nothing happens.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,193
|
Hi,
You seem to be doing everything correctly. Can you isolate the problem into a test page so that we can take a look? Make sure the page runs because we will need to see the problem happening.
Thanks
|
|
Rank: Newbie Groups: Member
Joined: 8/5/2008 Posts: 9
|
I got it to work. The problem was that the first column didn't work. When I added a RowNumberColumn as the first colum, everything else works as its is supposed to. Is in not possible to edit the first column???
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,193
|
Hi,
Check your FixedColumnCount property. I believe fixed column can not enter edit mode.
Thanks
|
|
Rank: Newbie Groups: Member
Joined: 8/5/2008 Posts: 9
|
The FixedColumnCount property setting fixed the problem. Another question...
I am used to using the asp.net controls which automatically update the database without having to write additional code.
I'm using SqlDataSource and it generates the update, delete and insert statements. Can I call them from grid somehow or if not, can you direct me to a VB example of how to do the batch update generated by the grid control.
Thanks
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,193
|
Hi, Unfortunately no. Our Grid does not automatically update the datasource. The Grid only provides you properties about what has been added/changed/removed. For example, you can use ChangedItems to get a list of changed items: http://www.essentialobjects.com/ViewDoc.aspx?t=EO.Web.Grid.ChangedItems.htmlYou would just look through that properties and create an update statement based on each of them to update your database. Thanks
|
|