Click here to Skip to main content
15,918,808 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Grid View Question Pin
Mavericks523-Jul-07 7:58
Mavericks523-Jul-07 7:58 
GeneralRe: Grid View Question Pin
kubben23-Jul-07 8:08
kubben23-Jul-07 8:08 
GeneralRe: Grid View Question Pin
Mavericks523-Jul-07 8:25
Mavericks523-Jul-07 8:25 
GeneralRe: Grid View Question Pin
kubben23-Jul-07 8:27
kubben23-Jul-07 8:27 
GeneralRe: Grid View Question Pin
Mavericks523-Jul-07 8:28
Mavericks523-Jul-07 8:28 
GeneralRe: Grid View Question Pin
kubben23-Jul-07 8:28
kubben23-Jul-07 8:28 
GeneralRe: Grid View Question Pin
Mavericks523-Jul-07 8:51
Mavericks523-Jul-07 8:51 
GeneralRe: Grid View Question Pin
Mavericks523-Jul-07 8:26
Mavericks523-Jul-07 8:26 
Thanks Ben, SomethingChecked() func makes perfect sense, this is how I did It too; however my data grid’s first column is a checkbox column with the item template like this:

<br />
<asp:TemplateField  HeaderText ="Select All"><br />
            <ItemTemplate><br />
            <br />
            <br />
            <asp:CheckBox ID="testChkBox" runat="server" /><br />
            <br />
            </ItemTemplate><br />
 </asp:TemplateField><br />
<br />


Since I have the message ID that I’m getting from that object I told you about also saved in the database, what I could do is add another column before the checkbox colums with the label displaying the Message ID (and then make it’s visibility attribute false).

So now looking at your code, the part I’m not understanding is
if (((CheckBox)gvr.FindControl("chkBoxSelect")).Checked)
{
listID = (Label)gvr.FindControl("lbListID");
this.ObjectDataSource1.DeleteParameters["ListID"].DefaultValue = listID.Text;

//Note we have set up a delete method in the object data source to take in the
//listid and delete that list.
this.GridView1.DeleteRow(i);
}

Specially where you have ObjectDataSource1.DeleteParameters["ListID"].DefaultValue = listID.Text;

I’m assuming that this method (DeleteParameters) is something that is custom written by you in that ObjectDataSource1 object. I’m getting a little confused here. Could you give me some pointers for my specific situation????

Thanks
GeneralRe: Grid View Question Pin
Mavericks523-Jul-07 8:27
Mavericks523-Jul-07 8:27 
GeneralRe: Grid View Question Pin
kubben23-Jul-07 8:32
kubben23-Jul-07 8:32 
GeneralRe: Grid View Question Pin
Mavericks523-Jul-07 8:52
Mavericks523-Jul-07 8:52 
GeneralRe: Grid View Question Pin
kubben23-Jul-07 9:01
kubben23-Jul-07 9:01 
GeneralRe: Grid View Question Pin
Mavericks523-Jul-07 10:00
Mavericks523-Jul-07 10:00 
GeneralRe: Grid View Question Pin
kubben23-Jul-07 12:06
kubben23-Jul-07 12:06 
GeneralRe: Grid View Question Pin
Mavericks523-Jul-07 12:07
Mavericks523-Jul-07 12:07 
GeneralRe: Grid View Question Pin
kubben24-Jul-07 1:10
kubben24-Jul-07 1:10 
QuestionSorting Data of Data Grid Control Pin
Khan.Bangash23-Jul-07 4:50
Khan.Bangash23-Jul-07 4:50 
AnswerRe: Sorting Data of Data Grid Control Pin
jcdevnet23-Jul-07 5:34
jcdevnet23-Jul-07 5:34 
AnswerRe: Sorting Data of Data Grid Control Pin
sathesh pandian23-Jul-07 5:35
sathesh pandian23-Jul-07 5:35 
GeneralRe: Sorting Data of Data Grid Control Pin
Khan.Bangash23-Jul-07 5:48
Khan.Bangash23-Jul-07 5:48 
AnswerRe: Sorting Data of Data Grid Control Pin
Deepak the Cool23-Jul-07 20:11
Deepak the Cool23-Jul-07 20:11 
QuestionHow do find all content between table tags using regular? Pin
mangrovecm23-Jul-07 4:16
mangrovecm23-Jul-07 4:16 
QuestionWindows Authentication (BizApp) Pin
totocaster23-Jul-07 4:00
totocaster23-Jul-07 4:00 
QuestionAsp.net2.0 Pin
indiaone23-Jul-07 3:02
indiaone23-Jul-07 3:02 
AnswerRe: Asp.net2.0 Pin
Fred_Smith23-Jul-07 3:28
Fred_Smith23-Jul-07 3:28 

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.