Wednesday, August 11, 2010

How do you set up a gridview with vb.net?

How would I go about setting the values of the gridview so that It will change dynamically when certain fields in the table have a certain value. I am Trying to display the Delete button in the grid when one of the fields is equal to 1. I have tryed a few things but have failed, any help would be appreciated.How do you set up a gridview with vb.net?
fist place the grid


then place the sqldatasource


configure it by selecting the connection string


then click on the table


-%26gt; next -%26gt; clickon the advance -%26gt; check on the insert,update,delete option


-%26gt; next -%26gt;testquery -%26gt;ok








go to the gridview click on Smart Tag


select the data source ,


then enable edit,delete check box options





it will work..How do you set up a gridview with vb.net?
I doubt any will read this but you need a Object Data source not a sql data source it will ask you to select a method to do it all in cant explain but its on MSDN just look at the GridView How-to. I dealing with same issue

Report Abuse

No comments:

Post a Comment