Click here to Skip to main content
16,020,666 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionRow Delete In GridView Pin
Rinki Mukheraji22-Nov-07 18:23
Rinki Mukheraji22-Nov-07 18:23 
AnswerRe: Row Delete In GridView Pin
Sun Rays22-Nov-07 18:59
Sun Rays22-Nov-07 18:59 
Question(asp:calendar) Linq to XML in DayRenderEvent Pin
welldone10122-Nov-07 18:12
welldone10122-Nov-07 18:12 
Questiongridview row select Pin
Sunil Wise22-Nov-07 17:48
professionalSunil Wise22-Nov-07 17:48 
AnswerRe: gridview row select Pin
Sun Rays22-Nov-07 18:05
Sun Rays22-Nov-07 18:05 
GeneralRe: gridview row select Pin
Sunil Wise22-Nov-07 18:31
professionalSunil Wise22-Nov-07 18:31 
GeneralRe: gridview row select Pin
Sun Rays22-Nov-07 18:54
Sun Rays22-Nov-07 18:54 
GeneralRe: gridview row select Pin
Sunil Wise22-Nov-07 23:34
professionalSunil Wise22-Nov-07 23:34 
thank u ray for u r replies it helped me some what by the way i used javescript function and some code
<script language="javascript" type="text/javascript">

    var gridViewCtlId = '<%=gvAuditErrors.ClientID%>';
    var gridViewCtl = null;
    var curSelRow = null;
    function getGridViewControl()
    {
        if (null == gridViewCtl)
        {
            gridViewCtl = document.getElementById(gridViewCtlId);
        }
    }
    
    function onGridViewRowSelected(rowIdx)
    {
        var selRow = getSelectedRow(rowIdx);
        if (curSelRow != null)
        {
            curSelRow.style.backgroundColor = '#ffffff';
        }
        
        if (null != selRow)
        {
            curSelRow = selRow;
            curSelRow.style.backgroundColor = '#99cccc';
           alert(rowIdx); 
        }
    }
    
    function getSelectedRow(rowIdx)
    {
        getGridViewControl();
        if (null != gridViewCtl)
        {
            return gridViewCtl.rows[rowIdx];
           alert(rowIdx); 
        }
        return null;
    }
</script>	
private Int32 m_iRowIdx;<br />
protected void gvAuditErrors_RowCreated(object sender, GridViewRowEventArgs e)<br />
    {<br />
        if (e.Row.RowType == DataControlRowType.DataRow)<br />
        {<br />
            //string m_iRowIdx;<br />
            e.Row.Attributes.Add("onclick", "onGridViewRowSelected('" + m_iRowIdx.ToString() + "')");<br />
        }<br />
        m_iRowIdx++;<br />
    }

http://www.netomatix.com/Development/GridViewRowSelectedStyle.aspx[^][^]
QuestionSearch Pin
Rock Star.22-Nov-07 17:45
Rock Star.22-Nov-07 17:45 
AnswerRe: Search Pin
Christian Graus22-Nov-07 18:06
protectorChristian Graus22-Nov-07 18:06 
AnswerRe: Search Pin
Deepak the Cool22-Nov-07 18:17
Deepak the Cool22-Nov-07 18:17 
QuestionLast 10 disit number or 10 character from from 13 disit nuber or 13 character Pin
Sarfaraj Ahmed22-Nov-07 12:27
Sarfaraj Ahmed22-Nov-07 12:27 
AnswerRe: Last 10 disit number or 10 character from from 13 disit nuber or 13 character Pin
Mustafa Ismail Mustafa22-Nov-07 12:41
Mustafa Ismail Mustafa22-Nov-07 12:41 
QuestionError Message - Try-Catch Block Pin
dataminers22-Nov-07 9:26
dataminers22-Nov-07 9:26 
AnswerRe: Error Message - Try-Catch Block Pin
dataminers22-Nov-07 9:57
dataminers22-Nov-07 9:57 
GeneralRe: Error Message - Try-Catch Block Pin
pmarfleet22-Nov-07 11:23
pmarfleet22-Nov-07 11:23 
AnswerRe: Error Message - Try-Catch Block Pin
Sherin Iranimose22-Nov-07 18:12
Sherin Iranimose22-Nov-07 18:12 
QuestionDropdown inside a repeator control using vb Pin
Oga M22-Nov-07 5:53
Oga M22-Nov-07 5:53 
QuestionASP.NET variables and javascript Pin
The Onslaught22-Nov-07 5:04
The Onslaught22-Nov-07 5:04 
AnswerRe: ASP.NET variables and javascript Pin
Braulio Dez22-Nov-07 5:53
Braulio Dez22-Nov-07 5:53 
AnswerRe: ASP.NET variables and javascript Pin
The Onslaught22-Nov-07 6:11
The Onslaught22-Nov-07 6:11 
QuestionRender Control Pin
nzibi22-Nov-07 4:20
nzibi22-Nov-07 4:20 
AnswerRe: Render Control Pin
Braulio Dez22-Nov-07 5:57
Braulio Dez22-Nov-07 5:57 
QuestionLike MaskTextBox Pin
A AntonySP22-Nov-07 2:39
A AntonySP22-Nov-07 2:39 
AnswerRe: Like MaskTextBox Pin
N a v a n e e t h22-Nov-07 3:06
N a v a n e e t h22-Nov-07 3:06 

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.