Click here to Skip to main content
15,913,271 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Web.config Pin
Xpycm13-May-09 0:09
Xpycm13-May-09 0:09 
AnswerRe: Web.config Pin
Baran M12-May-09 22:51
Baran M12-May-09 22:51 
AnswerRe: Web.config Pin
Abhijit Jana12-May-09 22:53
professionalAbhijit Jana12-May-09 22:53 
AnswerRe: Web.config Pin
Xpycm13-May-09 0:37
Xpycm13-May-09 0:37 
GeneralRe: Web.config Pin
specialdreamsin13-May-09 0:50
specialdreamsin13-May-09 0:50 
QuestionAdding a Checkbox in a Gridview Pin
Vimalsoft(Pty) Ltd12-May-09 22:12
professionalVimalsoft(Pty) Ltd12-May-09 22:12 
AnswerRe: Adding a Checkbox in a Gridview Pin
Ramesh Swaminathan12-May-09 22:23
Ramesh Swaminathan12-May-09 22:23 
GeneralRe: Adding a Checkbox in a Gridview Pin
Vimalsoft(Pty) Ltd12-May-09 22:41
professionalVimalsoft(Pty) Ltd12-May-09 22:41 
Good Morning Ramesh

Thank you for your Answer, my Problem is that am not using a wizard to do a Connection. Let me explain in Detail what am doing. The Code has changed a little bit i was able to bring the checkbox but here is something more

Now my Gridview will look like this
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" PageSize="20"
                         Width="99%" OnPageIndexChanging="GridView1_PageIndexChanging" OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
                            <Columns>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:CheckBox ID="CheckBox1" runat="server" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField HeaderText="User" />
                                <asp:BoundField HeaderText="Resource" />
                                <asp:BoundField HeaderText="Type" />
                            </Columns>
                            <EmptyDataTemplate>
                                <asp:CheckBox ID="chk" runat="server" />
                            </EmptyDataTemplate>
             
                         </asp:GridView>


Now am Binding my Grid like this

private void Bind_Responsibility()
   {
       BLL.BLL obj = new BLL.BLL();

       DataSet ds = new DataSet();

       ds = obj.Responsibilities_View_details(Convert.ToString(Session["Selected"]), Convert.ToString(Session["ActiveDatabase"]));

       GridView1.Visible = true;

       grdViewResponsibilities.Visible = false;

       GridView1.DataSource = ds;

       GridView1.DataMember = "Response";

       GridView1.DataBind();
   }


Now my Results are like this
checkbox User     Resource    TypeUser           Resource                 Type 
=========================================================================================                             
[]           |             |         |  Administrator | E3 - Ekonomiese Wet.| Gebou |
----------------------------------------------------------------------                              
[]           |             |         |  Administrator | E7 - FP Biblioteek  | Gebou |
----------------------------------------------------------------------  
[X]          |             |         |  Administrator | E8 - JC Coetzee     | Gebou |
==========================================================================================



Now my Problem is that First 3 Columns are Empty. How can i remove the Empty part. Am Binding from a Dataset.

Thank you

Vuyiswa Maseko,

Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."

C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/

GeneralRe: Adding a Checkbox in a Gridview Pin
Ramesh Swaminathan12-May-09 23:12
Ramesh Swaminathan12-May-09 23:12 
GeneralRe: Adding a Checkbox in a Gridview Pin
Vimalsoft(Pty) Ltd12-May-09 23:48
professionalVimalsoft(Pty) Ltd12-May-09 23:48 
QuestionPage.Controls.Add error Pin
The_Collector12-May-09 21:59
The_Collector12-May-09 21:59 
AnswerRe: Page.Controls.Add error Pin
Ramesh Swaminathan12-May-09 23:14
Ramesh Swaminathan12-May-09 23:14 
GeneralRe: Page.Controls.Add error Pin
The_Collector12-May-09 23:37
The_Collector12-May-09 23:37 
GeneralRe: Page.Controls.Add error Pin
Ramesh Swaminathan12-May-09 23:51
Ramesh Swaminathan12-May-09 23:51 
GeneralRe: Page.Controls.Add error Pin
The_Collector13-May-09 0:03
The_Collector13-May-09 0:03 
QuestionProblem with using iFrame in asp.net Pin
panyaung12-May-09 21:42
panyaung12-May-09 21:42 
AnswerRe: Problem with using iFrame in asp.net Pin
Ramesh Swaminathan12-May-09 23:19
Ramesh Swaminathan12-May-09 23:19 
GeneralRe: Problem with using iFrame in asp.net Pin
panyaung13-May-09 16:23
panyaung13-May-09 16:23 
Questiondropdown problem Pin
sirisha guttikonda12-May-09 21:21
sirisha guttikonda12-May-09 21:21 
AnswerRe: dropdown problem Pin
Ramesh Swaminathan12-May-09 21:28
Ramesh Swaminathan12-May-09 21:28 
Questionsession timeout Pin
samerh12-May-09 19:02
samerh12-May-09 19:02 
AnswerRe: session timeout Pin
Vasudevan Deepak Kumar12-May-09 19:50
Vasudevan Deepak Kumar12-May-09 19:50 
GeneralRe: session timeout Pin
samerh12-May-09 20:06
samerh12-May-09 20:06 
AnswerRe: session timeout Pin
Abhijit Jana12-May-09 19:59
professionalAbhijit Jana12-May-09 19:59 
GeneralRe: session timeout Pin
samerh12-May-09 20:07
samerh12-May-09 20:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.