This Code is just get you started.
There would still be work to do but this will get the GridView there and gives a general idea of what to do with the columns.
GridView gDocuments = new GridView();
gDocuments.Visible = true;
gDocuments.ID = "gvDocs";
gDocuments.BackColor = System.Drawing.Color.Cornsilk;
gDocuments.BorderColor = System.Drawing.Color.
DarkMagenta;
gDocuments.BorderWidth = System.Web.UI.WebControls. Unit.Pixel(5);
gDocuments.RowCommand += new GridViewCommandEventHandler( gDocuments_RowCommand);
ButtonField bf1 = new ButtonField();
bf1.CommandName = "SelectRow";
bf1.Text = "Select This Row";
bf1.ButtonType = ButtonType.Button;
bf1.Visible = true;
gDocuments.Columns.Add(bf1);
pnlLayout.Controls.Add( gDocuments);
There would still be work to do but this will get the GridView there and gives a general idea of what to do with the columns.
GridView gDocuments = new GridView();
gDocuments.Visible = true;
gDocuments.ID = "gvDocs";
gDocuments.BackColor = System.Drawing.Color.Cornsilk;
gDocuments.BorderColor = System.Drawing.Color.
gDocuments.BorderWidth = System.Web.UI.WebControls.
gDocuments.RowCommand += new GridViewCommandEventHandler(
ButtonField bf1 = new ButtonField();
bf1.CommandName = "SelectRow";
bf1.Text = "Select This Row";
bf1.ButtonType = ButtonType.Button;
bf1.Visible = true;
gDocuments.Columns.Add(bf1);
pnlLayout.Controls.Add(
Incase more Help needed let me know..
will you fall in love with each and every person who looks and acts exactly that way, too.
ReplyDeleteThe catchy song I Won't Dance was originally written for a
now forgotten musical called Three Sisters. Nervous or ill-at-ease people
make others feel uncomfortable.
my web-site - frank kern coaching program (www.youtube.com)